Everyone else is doing it, so why can’t I?
April 16, 2008 by Giulio Piancastelli
The shell meme. Via Bill de hÓra. Type the following in a terminal window:
history|awk '{a[$2]++} END{for(i in a){printf "%5d\t%s\n ",a[i],i}}'|sort -rn|head
My results, at work, on Mac OS X:
109 ls 109 cd 46 java 33 logout 27 ssh 24 emacs 18 cvs 15 javac 15 env 13 ./football2html.py
Oh, this is funny! I have used the Python script at the bottom to convert football data from Dave Thomas Kata Four in an HTML table, because I wanted to propose it as an exercise to code in JavaScript for students of a university course I have been tutoring.
And at home, on Ubuntu 7.10:
93 ls 55 cd 28 sudo 22 java 18 exit 17 less 15 emacs 13 mv 12 rm 10 gedit
No surprises here. Maybe I am doing too much Java…?