mirror of
https://github.com/Erreur32/cheat.git
synced 2024-11-18 09:50:44 +01:00
2 lines
115 B
Text
2 lines
115 B
Text
# sum integers from a file or stdin, one integer per line:
|
|
printf '1\n2\n3\n' | awk '{ sum += $1} END {print sum}'
|