in reply to Re: Re: Removing repeated lines from file
in thread Removing repeated lines from file


Here is another variation:
perl -i.bak -ne 'print unless $h{$_}++' file

However, since these solutions store unique lines in memory they are potentially slow for very large files.

--
John.