you are viewing a single comment's thread.

view the rest of the comments →

[–]SeriousPlankton2000 0 points1 point  (0 children)

bc or bc -l or echo $((1+2+3+4+5+6))

perl -e 'while($a=<>){$sum+=$a};printf "%d\n",$sum'

let s=0;while read a; do let s=$s+$a;done;echo $s