Answers for "how to assign sum of variable in shell script"

1

sum variables shell

a=`expr "$a" + "$num"`

a=$(($a+$num))

((a=a+num))

let a=a+num

((a+=num))
Posted by: Guest on February-18-2021

Code answers related to "how to assign sum of variable in shell script"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language