multiply and divide in bash scripting code example
Example 1: multiply command bash
a=2
b=3
multiplication=$( bc -l <<<"$a*$b" )
Example 2: bash multiplication of arguments
result=$((var1 * var2))
a=2
b=3
multiplication=$( bc -l <<<"$a*$b" )
result=$((var1 * var2))