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