Need a script to delete duplicate records

Yukon Landmark tactical 5mw green laser...
January 4, 2011 at 01:13:44
Specs: unix
Hi all,

I need you write a script to delete duplicate records. I have file having 100 thousand records.
For details, please example below,

AC60414 700 436567.02347603.0 0
AC60414 701 436590.02347612.9 0
AC60414 702 436612.92347623.0 0
AC60414 703 436635.92347632.0 0
C60414 700 436566.82347603.0 0
C60414 701 436589.82347612.8 0
C60414 702 436612.82347622.5 0
C60414 703 436635.82347632.3 0
C60414 700 436566.82347603.0 0
C60414 701 436589.82347612.8 0
C60414 702 436612.82347622.5 0
C60414 703 436635.82347632.3 0

Thanks in advance for your help,
Regards,
khizar


See More: Need a script to delete duplicate records

Report •

#1
January 4, 2011 at 05:00:59
1) Firstly why do the "tags" lead to a gun sight. Spam?

2) This question about duplicate records come up time and time on forums. Homework? Exam practice question?

3) You have given ABSOLUTELY NO information about any distro or application...

4) Have you Googled for an answer?


Report •

#2
January 4, 2011 at 07:03:56
Use the -u option of the sort command:

sort -u file > newfile


Report •
Related Solutions


Ask Question