History Meme

Saturday, 19. Apr 2008


$ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
1 emacs

6 Responses to “History Meme”

  1. Chinpokomon said

    Strangely, an overwhelming sudo on my Linux box. I’ve just been trying to update my system and get it back in shape, so maybe that isn’t so surprising.

  2. n8k99 said

    now that’s a history!

  3. Hey you should have done it in *your* system, not on a recently “stolen” shell account :-D

  4. Rishat Muhametshin said

    Incredibly obscure command string. What does this script mean?

  5. bact' said

    so it’s time for me to start study emacs seriously…

    another possibility,

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

    (of Windows user … ok, with Cygwin or Mingw installed … errr, but what’s the point! – -”)

Leave a Reply