- or download this
perl -ne 'push @a, $_; $h{$_}++; END{print grep {not --$h{$_}} @a}
+' file
- or download this
cabbage
apple
...
pear
banana
apple
- or download this
cabbage
carrot
...
pear
banana
apple
- or download this
perl -ne 'print unless $h{$_}++' file
- or download this
sort -u file
sort file | uniq