This should only print each line in my_file.txt once:
perl -ne 'print unless $n{$_}++' my_file.txt
In reply to Re: Removing Duplicate Lines from a File
by DamnDirtyApe
in thread Removing Duplicate Lines from a File
by johnirl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |