if [ expression ]; then
statement
else
statement
fi
if [ expression ]; then
statement
elif [ expression ]; then
statement
else
statement
fi
for i in item1 item2 ... itemN
do
statement
...
statement
done
arr=(1 2 3)
for i in ${arr[@]}
do
statement
...
statement
done
while condition
do
command
done
while :
do
# command
done
while true do command done
for (( ; ; )) do command done
until condition
do
command
done
case $var in
pattern)
statement
;;
*)
statement
;;
esac