in reply to Re^2: removing non-duplicates
in thread removing non-duplicates

beacause that doesn't do what OP wanted. Quotes from the respective man pages:
[me@host tmp]$ cat /tmp/t A B A C [me@host tmp]$ sort -u /tmp/t A B C [me@host tmp]$ sort /tmp/t | uniq -u B C