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