What does || in shell script mean?

What does || in shell script mean?
Answer
Just like && , || is a bash control operator: && means execute the statement which follows
only if the preceding statement executed successfully (returned exit code zero). || means execute the statement which follows only if the preceding statement failed (returned a non-zero exit code).
 

Tìm kiếm

Back
Top