uniq will only work if the items are sorted (or at least if all of the identical items are consecutive).
$ printf "a\nb\na\n" |uniq a b a
sort |uniq would work, though, or sort -u.
In reply to Re: Re: Removing duplicates from list
by sgifford
in thread Removing duplicates from list
by Levan
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |