Friday, October 22, 2010

uniq

An example: To see the list of lines in a file, sorted by the number of times each occurs:

sort file | uniq -c | sort -n

Source

No comments:

Blog Archive