Monday, 16 January 2012

Extract rows from a file unique w.r.t column


awk '!_[$1]++' filename
Here rows are extracted w.r.t unique values from column 1.

No comments:

Post a Comment