This ruby solution also deserves a mention as it doesn't slurp the file thanks to ruby iterators.
ruby -we 'puts $<.inject(0) {|a, x| a + x.to_i };'
In reply to Re: adding a column of integers
by ambrus
in thread adding a column of integers
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |