Created
March 25, 2018 08:42
-
-
Save luoyuping/5647015ca96dd3d739bb91ef81379b19 to your computer and use it in GitHub Desktop.
sum all number in a file using awk
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 '{ sum += $1 } END { print sum }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment