Skip to content

Instantly share code, notes, and snippets.

@fcamel
Created January 9, 2012 09:44
Show Gist options
  • Save fcamel/1582222 to your computer and use it in GitHub Desktop.
Save fcamel/1582222 to your computer and use it in GitHub Desktop.
Sum one column
# from http://stackoverflow.com/questions/3096259/bash-command-to-sum-a-column-of-numbers
$ paste -sd+ infile|bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment