how to multiply in shell code example Example: multiply command bash a=2 b=3 multiplication=$( bc -l <<<"$a*$b" )