What is || in shell script?

What is || in shell script?
Answer
The
OR Operator (||) is much like an ‘else’ statement in programming. The above operator allow you to execute second command only if the execution of first command fails, i.e., the exit status of first command is ‘1’. … Second command won’t execute.
 

Tìm kiếm

Back
Top