Oh, I'm sorry to give a wrong script. It has been modified below: #!/bin/bash SUM=0 while read NUMBER do SUM=$(expr $SUM + $NUMBER) # Yes, this line. done echo $SUM
-- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120228142411.ga5...@qgz.qgz