Skip to content

Instantly share code, notes, and snippets.

@boris
Created June 25, 2012 14:58
Show Gist options
  • Save boris/2989144 to your computer and use it in GitHub Desktop.
Save boris/2989144 to your computer and use it in GitHub Desktop.
Add numbers from a file with awk
cat file_with_numbers.txt | awk '{a=+$1}END{print a}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment