Skip to content

Instantly share code, notes, and snippets.

@devasat
Created May 22, 2017 05:27
Show Gist options
  • Save devasat/53b6ee986e6bb191310c30f3c67973e4 to your computer and use it in GitHub Desktop.
Save devasat/53b6ee986e6bb191310c30f3c67973e4 to your computer and use it in GitHub Desktop.
Sum a column of numbers
for i in `seq 1 100`; do echo $i; done | paste -sd+ - | bc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment