Here is the sample file with the duplicate lines:
abs
bsa
bsc
abs
bsa
bsb
Here is what the output should be (no duplicates):
abs
bsa
bsc
bsb
I tried out the uniq -u
command, but it deletes out the duplicate lines, so would it be better to use sed
or awk
? Any suggestions?
Thanks!