in reply to finding and deleting repeated lines in a file


If the file isn't huge then you could do this      perl -i.bak -ne 'print unless $h{$_}++' file

The -i.bak gives you an effective in-place edit with a back-up in file.bak.

--
John.