arg1 -lt arg2 (conditional operator)
true
if integer arg1
is less than integer arg2
.
Links
Examples
- Different ways to compare two integers:
1 2 3 4
test "$n" -lt 42 && echo "$n < 42" [ "$n" -lt 42 ] && echo "$n < 42" # Bash [[ "$n" -lt 42 ]] && echo "$n < 42"
BashSupport Pro is a Bash IDE with support for -lt – try it now!