Skip to content

Instantly share code, notes, and snippets.

@djblue
Created November 7, 2014 04:25
Show Gist options
  • Save djblue/d0981fa2b442ed2724c3 to your computer and use it in GitHub Desktop.
Save djblue/d0981fa2b442ed2724c3 to your computer and use it in GitHub Desktop.
A collection of bash snippets.
# Sum all of the columns in a table
cat file.txt | cut -d',' -f2 | paste -sd+ | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment