arithmetic-operator
Bash > arithmetic operator
Returns 1 if left operand is numerically greater, otherwise 0.
Formal Syntax & Structure
bash syntaxbash
$(( 5 > 3 ))Return Value
integer
Returns 1 if left operand is numerically greater, otherwise 0.
Working Example
Example Snippetbash
printf '%s\n' "$(( 5 > 3 ))"