I have a file as as follows:
abc
abc
123
xyz
foo
foo
bar
What I'm trying to do is determine which rows in the file are unique, perhaps using grep or awk. So in this case my command should output
123
xzy
bar
...and ignore lines that contain a string that occurs again. The file has already been sorted. Thanks in advance.