sum=0 for i in $* do sum=\`expr $sum + $i\` done echo \"Summation of \"$#\" no. is: \"$sum OUTPUT *********** [04mca58@LINTEL 04mca58]$ sh sum.sh 10 20 Summation of 2 no. is: 30