Shell History

Meme of the day. Why not:

sean@lenny:~$ history|awk '{a[$2]++} END{for(i in a)
> {printf "%5d\t%s\n",a[i],i}}'|sort -rn|head
  113   ls
   72   cd
   65   hg
   30   svn
   25   ssh
   23   sudo
   21   gvim
   19   paster
   14   python
   14   ./bin/instance

That last one is a Plone buildout server controller and test runner.

Comments

Re: Shell History

Author: Dylan Beaudette

Nice.
history | awk '{a[$2]++} END{for(i in a) {printf "%5d\t%s\n",a[i],i}}' | sort -rn | head
   94   l
   93   cd
   55   sudo
   51   exit
   22   grass63
   14   ssh
   11   rm
   11   ps
    9   aptitude
    8   svn