conditional-operator
Bash -ne comparison
Numeric inequality.
Formal Syntax & Structure
bash syntaxbash
[ a -ne b ]Return Value
exit status
Numeric inequality.
Working Example
Example Snippetbash
[ '10' -ne '8' ]printf '%s\n' "$?"Numeric inequality.
[ a -ne b ]Numeric inequality.
[ '10' -ne '8' ]printf '%s\n' "$?"