User Tools

Site Tools


linux:sort

This is an old revision of the document!


uniq -c

-k1nr means sort by the column 1 and descending -k2 means if k1 is the same value,then sort with column 2 by alphabetic

cat PHONEMODEL-7.txt |sort|uniq -c|sort -k1nr -k2
/var/www/dokuwiki/wiki/data/attic/linux/sort.1381587798.txt.gz · Last modified: 2016/05/05 13:06 (external edit)