bash perform arithmetic operations code example Example: arithmetic operation in bash #!/bin/bash x=5 y=10 ans=$(( x + y )) echo "$x + $y = $ans"