Bash history meme

 history | awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head

My workstation

 123 ssh
58 su
34 sudo
30 apt-cache
29 cd
22 sensors
13 ls
11 ping
9 host
8 scp
andy@bloodymary:~$

This server

 228 grep
68 tail
35 mailq
23 host
22 cd
14 mutt
10 zgrep
10 whois
10 mc

6 vi

April 11th, 2008 Posted in General, Tech stuff

One Response to “Bash history meme”

  1. kOoLiNuS Says:

    Uhm …

    nicola@beagle10:~$ history | awk ‘{a[$2]++ } END{for(i in a){print a[i] ” ” i}}’|sort -rn|head
    -bash: syntax error near unexpected token `(’

    picchè ?



Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress | Blue Weed by Blog Oh! Blog | Entries (RSS) and Comments (RSS).