[PLUG] Your favorite $SHELL verbs
Paul Heinlein
heinlein at madboa.com
Tue May 6 20:39:14 UTC 2008
I saw this on Jesse Keating's blog (which he apparently lifted from a
Planet Fedora discussion), a one-liner for discovering your favorite
shell commands:
history |\
awk '{ a[$2]++ } END{ for( i in a ) { print a[i] " " i } }' |\
sort -rn |\
head
It won't take into account commands that are not the first token in
any given line -- maybe they've been invoked by a wrapper like sudo or
they sit on the other end of a pipe -- but it's still sort of
interesting, in a navel-gazing sort of way.
--
Paul Heinlein <> heinlein at madboa.com <> http://www.madboa.com/
More information about the PLUG
mailing list