Created
March 24, 2018 11:05
-
-
Save josuecau/bfad178aabcac3c7aaca5d16b9bcfa6b to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
input="${1:-/dev/stdin}" | |
awk '{s+=$1} END {print s}' "$input" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment