- 论坛徽章:
- 0
|
- 6.4 Bash Conditional Expressions
- ...
- string1 < string2
- True if string1 sorts before string2 lexicographically in the current locale.
- string1 > string2
- True if string1 sorts after string2 lexicographically in the current locale.
- arg1 OP arg2
- OP is one of ‘-eq’, ‘-ne’, ‘-lt’, ‘-le’, ‘-gt’, or ‘-ge’. These arithmetic binary operators return true if arg1 is equal to, not equal to, less than, less than or equal to, greater than, or greater than or equal to arg2, respectively. Arg1 and arg2 may be positive or negative integers.
复制代码 |
|