Three Monkeys, Three Typewriters, Two Days

Comments: Me N for N > 3

ewww, emacs :p

Posted by Shawn Wilsher at April 15, 2008 7:48 AM

You get better formatted columns with uniq. :-)

history | awk '{print $3}' | uniq -c | sort -nr | head

Posted by anlan at April 15, 2008 10:38 AM

Get thee behind me, oh vi-using infidel sdwilsh. ;)

Posted by Boris at April 15, 2008 10:44 AM

You need anpther sort in there:

history | awk '{print $3}' | sort | uniq -c | sort -nr | head

to make sure all the commands get lumped into their own group.

Posted by Michael at April 15, 2008 7:22 PM
Post a comment