Math Operations in shell scripting - Mod, division etc..
To do math operation in shell scripting is very easy using both echo and bc commands
For example to fine mod of 5 and 3
echo 5%3 | bc
to find mod of two arguments
echo $1%$2 | bc
This will print the result of mod operators