Computing.Net > Forums > Unix > Awk duplicate record elimination

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.

Awk duplicate record elimination

Reply to Message Icon

Name: Radhe
Date: February 21, 2006 at 01:10:54 Pacific
OS: HP-UX
CPU/Ram: K
Product: HP
Comment:

I need to eliminate duplicates in a text file, and I'm thinking to use Awk, but am a little unsure how to proceed. My input file is like this:
Line1:data
Line2:data
...
Line8:data
...

Each 8 lines make up a record (total 3000 records), but there are some duplicates. A unique record is made up of the combination of the data from Line 1 & Line 2. If a record is not unique I must delete the full 8 lines associated. Any suggestions on how to go about it?

Thanks!




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


Sponsored links

Ads by Google


Results for: Awk duplicate record elimination

identifying duplicate records www.computing.net/answers/unix/identifying-duplicate-records-/7318.html

Idendifying duplicate records www.computing.net/answers/unix/idendifying-duplicate-records/7141.html

Identify duplicate records in UNIX www.computing.net/answers/unix/identify-duplicate-records-in-unix/5892.html