Computing.Net > Forums > Programming > shell script to delete duplicate

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.

shell script to delete duplicate

Reply to Message Icon

Name: myusuf
Date: March 7, 2009 at 11:09:43 Pacific
OS: hpux
Subcategory: Batch
Comment:

hello.
I am new to scripting...so help me guys.
I have a table of format:
aa 1 1/2/2009
ad 1 3/2/2009
ab 2 2/2/2009
aa 3 2/2/2009


Want to know shell script that gives me o/p as follow:
aa 3 2/2/2009
ab 2 2/2/2009
ad 1 3/2/2009

That is first sort on date basis, then remove oldest duplicate from first column (for example aa here, that I removed).

Many thnx in advance.

-yusuf



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 Programming Forum Home


Sponsored links

Ads by Google


Results for: shell script to delete duplicate

Batch Script to delete '?' character in txt www.computing.net/answers/programming/batch-script-to-delete-character-in-txt/19908.html

transfering shell script to windows www.computing.net/answers/programming/transfering-shell-script-to-windows/3681.html

Batch script to delete characters www.computing.net/answers/programming/batch-script-to-delete-characters-/17992.html