Bash Math Math using bash capabilities


Example

Arithmetic computation can be also done without involving any other programs like this:

Multiplication:

echo $((5 * 2))
10

Division:

echo $((5 / 2))
2

Modulo:

echo $((5 % 2))
1

Exponentiation:

echo $((5 ** 2))
25