[Bash] Perform arithmetic

Created on November 30, 2026

Use $(( ... )) for arithmetic expansion. This example adds 2 and 3, assigns the result to RESULT, and prints it with echo.

RESULT=$(( 2 + 3 ))
echo $RESULT
Bash