basic bash
for loop
# output 1 to 50
for i in $(seq 1 50)
do
echo $i
done
while
while condition
do
statements
done
if
if condition
then
statements
[elif condition
then statements ...]
[else
statements]
fi
# output 1 to 50
for i in $(seq 1 50)
do
echo $i
done
while condition
do
statements
done
if condition
then
statements
[elif condition
then statements ...]
[else
statements]
fi