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