13,420
edits
Changes
→Using Control Flow Statements in Shell Scripts
There are several logic statements, but we will just concentrate on the if statement.
<codepre style="width:50%">
if test condition
then
command(s)
fi
</codepre>