Ravi Sir's Cards › AWS
Do math in bash?
This interview card answers: Do math in bash? Use $(( )) for integers. No decimals in bash. Example.
Read card text
What this card says
What it is
Use $(( )) for integers.
Why it matters
No decimals in bash.
How / example
Example.
echo $(( 7 * 3 ))