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
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