![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Remove duplicates from File from specific location | gopikgunda | Shell Programming and Scripting | 1 | 04-09-2008 03:16 AM |
| lastlog has duplicates | chlawren | AIX | 1 | 06-19-2006 05:30 AM |
| fastest way to remove duplicates. | radhika | Shell Programming and Scripting | 15 | 11-03-2005 07:27 AM |
| Removing duplicates | giannicello | Shell Programming and Scripting | 12 | 09-14-2005 07:12 PM |
| Sendmail Duplicates | OBSESIK | UNIX for Dummies Questions & Answers | 0 | 02-28-2005 01:13 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
How to remove duplicates without sorting
Hello,
I can remove duplicate entries in a file by: sort File1 | uniq > File2 but how can I remove duplicates without sorting the file? I tried cat File1 | uniq > File2 but it doesn't work thanks |
|
||||
|
Many ways using awk or perl. Search this site using the duplicates keyword.
|
|
||||
|
Quote:
try to use nawk or /usr/xpg4/bin/awk |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|