In addition to what kcott wrote, there are Math::Expression & Math::Symbolic.
# No need perl. # For numbers all by their lonesome on a line. awk 'BEGIN { sum = 0 } END { print sum } { sum += $1 }' in > out
In reply to Re: Summing numbers in a file
by parv
in thread Summing numbers in a file
by pvfki
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |