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