bash math multi code example
Example 1: how make a multiplication whith expr
#!/bin/bash
echo
# Multiplication Example
# ---------- ---------
echo "Multiplication Example"
echo
m=`expr 5 \* 3`
echo "5 * 3 = $m"
Example 2: bash multiplication of arguments
result=$((var1 * var2))