NUMBER1 != NUMBER2 (arithmetic operator)

true if the two numbers are not equal.

Examples

Test if two numbers are not equal:
1
(( n != 42 )) && echo "not equal!"
BashSupport Pro 是一个 支持 != 的 Bash 集成开发工具 – 马上试用!
© 2020–2026 Joachim Ansorg
声明
隐私政策
许可条款