Skip to content

Instantly share code, notes, and snippets.

@robcowie
Created November 18, 2011 14:32
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 robcowie/1376599 to your computer and use it in GitHub Desktop.
Save robcowie/1376599 to your computer and use it in GitHub Desktop.
For Stackoverflow question 8173326
awk '{people[$1] += $2} END {for (person in people) { printf("%s %10.2f\n",person,people[person])}}' $1
@robcowie
Copy link
Author

Save this file, then run it from command line with bash sum.sh /path/to/your/file.data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment