keyword
Bash pipeline negation
Inverts success or failure of a pipeline; nonzero becomes zero and zero becomes one.
Formal Syntax & Structure
bash syntaxbash
! pipelineReturn Value
behavior
Inverts success or failure of a pipeline; nonzero becomes zero and zero becomes one.
Working Example
Example Snippetbash
! falseprintf '%s\n' "$?"