acc
per script that add a series of numbers given via stdin
Usage: acc < input
value accumulator, displays cumulative sum of numbers read from stdin.
furthermore:
Expressions entered will be evaluated, and the result added to the accumulator.
c [value] clears the accumulator, optionally setting it to specified value
m [name] remember value under specified name (substition will be done)
q quits