News for hackers. Stuff that matters.
Re:Your top 100 unix commands, for science by NyxWulf on Sunday May 19, 2013 @04:47PM (#5734337)
This works for me in zsh on OSX

history \ | sed "s/^[0-9 ]//" \ | perl -pe 's/ \| */\n/g' \ | gawk '{counts[$1] += 1} END { for (x in counts) { print counts[x],x}}' OFS="\t" \ | column -t \ | sort -k 1,1nr \ | head -100

Ok not sure how to format this on HN https://gist.github.com/nyxwulf/5608955#file-gistfile1-sh

There are no comments on this comment yet.