Allowing your code to make branching decisions, control flow requires a condition and makes a decision based on exit status of the conditional. shell offers a number of control flow elements.
Binary Operators (&& and ||)
&&
||
if-elif-else Statement
if-elif-else
case Statement
case
for Loop
for
while Loop
while
Functions
Last updated 6 years ago