Created
February 6, 2017 07:02
-
-
Save ftorto/b0c3188bdda646f53bff604eb14f6191 to your computer and use it in GitHub Desktop.
Sum all lines (1 value per line)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
awk '{s+=$1} END {printf "%.0f", s}' mydatafile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment