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:
2
3
sort file | uniq
will not do the job. Will show all values 1 time
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:
2
3
sort file | uniq
will not do the job. Will show all values 1 time
This was the first i tried
After doing a cat -e all.sorted
Every second line has a trailing space :( After removing all trailing spaces it worked!
thank you