2026-09-09 10:47 UTC
Tip for Linux shell beginners: Execute a second command only if the first one failed.
`command_1 || command 2`
Background: This compound command uses the result code returned by `command_1` with the "shortcircuit" behaviour of the "logical OR" `||` operator.
#Linux #Shell #Terminal
Replies (0)
No replies.