If on *nix you can pipe the sort output into uniq (http://en.wikipedia.org/wiki/Uniq) to get rid of adjacent duplicates.
knoppix@Microknoppix:~$ cat rubbish cat fish dog apple cat bird knoppix@Microknoppix:~$ sort rubbish | uniq apple bird cat dog fish knoppix@Microknoppix:~$
I hope this is of interest.
Cheers,
JohnGG
In reply to Re^2: Duplicate entries?
by johngg
in thread Duplicate entries?
by perllearner007
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |