skip to main | skip to sidebar

Jack Diederich's Python Blog

What I'm working on in Python, tips, observations, stuff.

Saturday, April 12, 2008

Shell Count Meme

history | awk '{{a[$2]++) END(for(i in a) {printf "%5d\t%s\n", a[i], i))' | sort -rn head

awk: line 1: extra ')'
awk: line 1: missing ( near END
awk: line 1: extra ')'
awk: line 2: missing } near end of file

Take that!
(actually I use tcsh which doesn't keep history between invocations. So this output is as interesting as it gets)
Posted by Jack Diederich at 8:36 PM No comments:
Newer Posts Older Posts Home
Subscribe to: Posts (Atom)

Blog Archive

  • ►  2012 (1)
    • ►  February (1)
  • ►  2011 (6)
    • ►  December (1)
    • ►  July (1)
    • ►  June (1)
    • ►  March (2)
    • ►  February (1)
  • ►  2010 (11)
    • ►  September (1)
    • ►  April (1)
    • ►  March (3)
    • ►  February (4)
    • ►  January (2)
  • ►  2009 (29)
    • ►  December (1)
    • ►  October (1)
    • ►  September (2)
    • ►  August (1)
    • ►  July (2)
    • ►  April (6)
    • ►  March (13)
    • ►  February (1)
    • ►  January (2)
  • ▼  2008 (28)
    • ►  December (1)
    • ►  November (1)
    • ►  September (3)
    • ►  August (2)
    • ►  July (7)
    • ►  June (1)
    • ►  May (2)
    • ▼  April (1)
      • Shell Count Meme
    • ►  March (6)
    • ►  February (1)
    • ►  January (3)
  • ►  2007 (2)
    • ►  December (2)

About Me

Jack Diederich
Python core developer and serial dot-commer
View my complete profile

Pythoneers

  • Planet Python
  •  
  • Ian Bicking
  • Richard Jones
  • Neal Norwitz
  • Jeremy Hylton
  • Fredrik Lundh
  • David Goodger
  • Sean Reifschneider
  • Brett Cannon
  • Georg Brandl
  • Guido Van Rossum