How do I get unique values of a column in Unix?

Lan Anh

New member
How do I get unique values of a column in Unix?
Answer
2 Alternatives + Submit Alt
  1. Display unique values of a column. the column number is ‘6’ cut -d’,’ -f6 file.csv | sort | uniq. richie · 2013-04-10 14:05:32 1.
  2. Display unique values of a column. 3 is the column’s number. -3. cut -f 3 | uniq. flxndn · 2012-06-06 10:48:41 2.
 

Tìm kiếm

Back
Top