Computing.Net > Forums > Solaris > korn shell to remove duplicates

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

korn shell to remove duplicates

Reply to Message Icon

Name: ravitarak
Date: January 6, 2004 at 14:28:15 Pacific
OS: Solaris
CPU/Ram: unknown
Comment:

I have a milian numbers with some duplicates in a file and I need a korn shell program which reads that file and writes in to another file with duplicates removed.

I appriciate your help on this.
Thanks
Ravi Tarak




Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: January 7, 2004 at 04:51:03 Pacific
Reply:

man sort

Look at the "-u" flag.


0

Response Number 2
Name: mdhmi21
Date: February 15, 2004 at 12:31:32 Pacific
Reply:

or 'uniq'

Mark


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Solaris Forum Home


Sponsored links

Ads by Google


Results for: korn shell to remove duplicates

redirect to web page in korn shell www.computing.net/answers/solaris/redirect-to-web-page-in-korn-shell/3691.html

Korn shell for login to openSSH www.computing.net/answers/solaris/korn-shell-for-login-to-openssh/3122.html

Remove Duplicate lines without sort www.computing.net/answers/solaris/remove-duplicate-lines-without-sort/5031.html