arsham
12/28/2016 - 2:29 PM

Unique lines in CSV or TSV file

Unique lines in CSV or TSV file

# TSV
sort -u -k1,1 INPUT.csv > OUTPUT.csv

# CSV
sort -u -t, -k1,1 INPUT.csv > OUTPUT.csv