How can I find the unique lines and remove all duplicates from a file? My input file is
1 1 2 3 5 5 7 7
I would like the result to be:
You could also print out the unique value in "file" using the cat command by piping to sort and uniq
cat
sort
uniq
cat file | sort | uniq -u