The bash history meme
Published April 16, 2008
Wherein I attempt to get what little readership I have to fall into a deep sleep.
Nicks-iMac:~ nick$ history 1000 | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
112 cd
53 svn
50 mate
40 sudo
35 ls
25 pwd
22 ./mysqladmin
17 port
14 ./mysql
13 curlĀ
Ah, now isn’t that better? Sleeeep. Sleeeeeeeep. I’m sure there’s at least one hard core Unix person out there saying “what the fuck does ‘mate’ do, and where’s all the entries for ‘vi’?” I will further separate the sleepy from the hardcore by announcing this is a Mac.
I change directories a lot, huh?
June 10th, 2008 at 10:10 am
I hadn’t seen this before. It’s a pretty interesting look at what you do on the computer. I almost never close anything so single use commands like ’svn ci’ tend to rule the day. Let the meme continue:
history 1000 | awk ‘{a[$9]++}END{for(i in a){print a[i] ” ” i}}’ | sort -rn | head
492 svn
147 cap
48 ll
46 tail
33 rm
31 less
28 cd
25 rake
25 cp
12 script/generate