Cut nth field of a csv file and sort
Using cut command you can print out the nth field of a csv input file in.csv.
cut -d"," -f3 in.csv | sort |uniq > ~/out.csv
Above command cuts the 3rd field and then sorts and then take a unique of sorted output and then finally output in out.csv
0 comments:
Post a Comment