Wednesday 5 February 2020

Test conditions syntax

in some case, their should be some condition to check and satisfy. to execute linux cmds in the script.
At that time this Tests concept play an important role.







Example syntax:                                                          
                                                      if [ -d /usr/sap/<sid> ]                                               
then                    
command1
command2
command3
fi                    
               
Note: here fi is used to close the if condition.




No comments:

Post a Comment