I've got a [csv] file with duplicate datum reprinted ie the same data printed twice. I've tried using sort's uniq
by sort myfile.csv | uniq -u
however there is no change in the myfile.csv
, also I've tried sudo sort myfile.csv | uniq -u
but no difference.
So currently my csv file looks like this
a
a
a
b
b
c
c
c
c
c
I would like to look like it
a
b
c
man sort
, you can't sort "in place".