Arithmetic operation in BASH Arithmetic operation in bash can be done as below. num1=6 num2=8 sum=$((num1+num2)) echo $sum Output: 14 Share this: Share on X (Opens in new window) X Share on Facebook (Opens in new window) Facebook Like Loading... Related