Skip to content

therealplato/add

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

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

About

sum integers from stdin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages