Skip to content

Instantly share code, notes, and snippets.

@cobbal
Created January 19, 2011 01:53
Show Gist options
  • Save cobbal/785536 to your computer and use it in GitHub Desktop.
Save cobbal/785536 to your computer and use it in GitHub Desktop.
$ cat realworlddata.txt | awk '{print $2}' | python2.7 -c 'import sys, collections; print collections.Counter(line.strip() for line in sys.stdin)'
Counter({'excellent': 66, 'good': 53, 'average': 6})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment