Categories
Loops

if condition

if condition which is used for decision making in shell script, If given condition is true then command1 is executed.
Syntax:

 if condition 
 then 
 command1 if condition is true or if exit status of condition is 0 (zero) 
 ... 
 ... 
 fi


Leave a Reply

Your email address will not be published. Required fields are marked *