arithmetic-operator
Bash - arithmetic operator
Subtracts integers; unary - negates the operand.
Formal Syntax & Structure
bash syntaxbash
$(( 7 - 4 ))Return Value
integer
Subtracts integers; unary - negates the operand.
Working Example
Example Snippetbash
printf '%s\n' "$(( 7 - 4 ))"