You can compare arithmetic values using one of -eq, -ne, -lt, -le, -gt, or -ge, meaning equal, not equal, less than, less than or equal, greater than, and greater than or equal, respectively.
可以用 -eq、 -ne、-lt、 -le、 -gt或 -ge比较算术值,它们分别表示等于、不等于、小于、小于等于、大于、大于等于。
The others are eq (equals), le (is less than or equal to), ne (is not equal to), and ge (is greater than or equal to).
此外还有 eq(等于)、le(小于等于)、ne(不等于)和ge(大于等于)。
Note the difference between the equal sign (=) and the eq operator.
注意等于号(=)和eq操作符之间的区别。
Note the difference between the equal sign (=) and the eq operator.
注意等于号(=)和eq操作符之间的区别。
应用推荐