I have a txt file with different lines:
aaaaaa
bbbbbb
cccccc
ababab
ababab
ababab
ababab
And I want to remove duplicates butget the first value: expected
aaaaaa
bbbbbb
cccccc
ababab
I've tried sort file | uniq -u
but the expected result did not include the sole coincidence for the row ababab
Any help?