The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 06-25-2009
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,932
First of all, it is not an "IF LOOP".

The first if statement will execute if exit code from the previous command was not 0.
The second if statement will execute if the exist code from the previous command was 0
The third if statement will execute if the number of positional parameters is 3.

To learn more, read the man page of your shell.