How to check the exit status using an if statement How to check the exit status using an if statement shell shell