Skip to content

Latest commit

 

History

History
23 lines (18 loc) · 442 Bytes

README.md

File metadata and controls

23 lines (18 loc) · 442 Bytes

github.com/therealplato/add

Adds newline-separated integers from stdin until EOF then output the total to stdout.

Ignores whitespace-only lines.

Logs non-integer lines to stderr.

install

go get -u github.com/therealplato/add

example

total bytes in /etc/* files:

$ find /etc/ -type f | xargs stat --format '%s' | add
find: ‘/etc/cups/certs’: Permission denied
3125911