Logical operators and exit status
Created by Codedamn about a year ago
0
No description provided
3 Comments
0
echo $? (get the status code of the last command ran ) exit 0 or exit non-zero value (exit the bash script with different status codes)
echo 1 && echo 2 (if status code of first statement is 0 then proceed with the second command.) echo 1 || echo 2 (if first statement return status code 0 then second statement will not execute)
show more answers
Your comment