in reply to Re: Removing duplicates from list
in thread Removing duplicates from list
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.
|
|---|