History Meme

Saturday, 19. Apr 2008


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

About these ads

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

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

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: