Each Linux command returns an exit code, with 0 indicating success and non-zero values indicating failure. You can use the $? variable to access the exit code and control program flow in scripts. Be ...
ITworld.com – Some of the worst-written scripts that I have encountered perform some action on behalf of the person running the script and then blithely continue on without ever checking whether the ...