expr in shell script code example
Example: bash expr example
# One can use expr for basic arithmetic operations :
# Example - Addition:
$expr 12 + 8
# Example - Multiplication (backslash needed):
$expr 12 \* 2
# One can use expr for basic arithmetic operations :
# Example - Addition:
$expr 12 + 8
# Example - Multiplication (backslash needed):
$expr 12 \* 2