arithmetic-operator
Bash ! arithmetic operator
Logical NOT yields 1 for zero and 0 otherwise.
Formal Syntax & Structure
bash syntaxbash
$(( ! 0 ))Return Value
integer
Logical NOT yields 1 for zero and 0 otherwise.
Working Example
Example Snippetbash
printf '%s\n' "$(( ! 0 ))"