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