Shell History Meme

I couldn’t resist the meme on Planet Fedora…

[jft@liriel ~]$ history | awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
209 ls
122 vi
90 cd
86 ssh
62 rm
48 less
43 ./j-to-the-p.sh
26 grep
23 su
22 ./notifier.py

[jft@flint ~]$ history | awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
160 ls
127 ssh
117 su
114 cd
16 free
14 clear
13 top
13 screen
11 ping
10 yum

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: