Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

bash sum numbers

num1=1232
num2=24 
num3=444
sum=$((num1+num2+num3))
echo $sum # prints 1700
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #bash #sum #numbers
ADD COMMENT
Topic
Name
1+4 =