Perl Monk, Perl Meditation | |
PerlMonks |
Re: Removing Duplicate Lines from a Fileby amphiplex (Monk) |
on Jul 17, 2002 at 15:44 UTC ( [id://182469]=note: print w/replies, xml ) | Need Help?? |
Hi ! The uniq command expects sorted input, so you should do sort file | uniq, or, better: sort -u file as to how to use DamnDirtyApes answer in your script:
---- amphiplex
In Section
Seekers of Perl Wisdom
|
|