Input:
a
b
b
c
d
d
I need:
a
c
I know how to get this (the lines that have duplicates) :
b
d
sort file | uniq -d
But i need opossite of this. I have searched the forum and other places as well, but have found solution for everything except this variant of the problem.
necroman08:
Input:
a
b
b
c
d
d
I need:
a
c
I know how to get this (the lines that have duplicates) :
b
d
sort file | uniq e
But i need opossite of this. I have searched the forum and other places as well, but have found solution for everything except this variant of the problem.
doesn't work for me.... If you can make it work... using grep the other thing is possible.
---------- Post updated at 02:17 PM ---------- Previous update was at 02:16 PM ----------
lathavim:
sort file | uniq -u
This works though
Yea sorry. Wrote it wrongly, it should be:
sort file | unig -d
.
Wrote rubbish first time, that is because stres
---------- Post updated at 04:07 AM ---------- Previous update was at 04:05 AM ----------
lathavim:
sort file | uniq -u
Great! Thanks man.