Answers for "sum 2 values shell script"

1

bash sum variable

x = 2
y = 2

echo $((x + y))
Posted by: Guest on October-28-2020
0

bash sum numbers

num1=1232
num2=24 
num3=444
sum=$((num1+num2+num3))
echo $sum # prints 1700
Posted by: Guest on November-28-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language