Created
June 25, 2012 14:58
-
-
Save boris/2989144 to your computer and use it in GitHub Desktop.
Add numbers from a file with 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
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