Skip to content

Instantly share code, notes, and snippets.

@danvine
Created April 7, 2011 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danvine/907102 to your computer and use it in GitHub Desktop.
Save danvine/907102 to your computer and use it in GitHub Desktop.
stream analysis - string\tcount
| awk '{a[$0]++}END{for (i in a) print i"\t"a[i]}'
| perl -lne '++$a{$_} }{ print "$_\t$a{$_}" for keys %a'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment