Control Structures
Control Structures
STRUCTURES
Unix Shell supports conditional statements which are used to
perform different actions based on different conditions.
two decision-making statements
The if...else statement
The case...esac statement
The if...else statements
If else statements are useful decision-making statements which can
be used to select an option from a given set of options.
Unix Shell supports following forms of if…else statement −
if...fi statement
if...else...fi statement
if...elif...else...fi statement
if...fi statement