#Just use following structure for summing up varibles: sum=$((var1 + var2)) #For float numbers use next instruction: sum=$(bc <<< $var1'+'$var2)
num1=1232 num2=24 num3=444 sum=$((num1+num2+num3)) echo $sum # prints 1700