if conditon
then
commands
else
command
fi
if condition
then
commands
else
if conditon
then
commands
fi
fi
for (( i=0;i<=10;i++ ))
{
command
echo $i
}
while ps -p `cat $PIDFILE` > /dev/null
do
let CNT+=1
if [ $CNT -gt 5 ]
then
break;
fi
sleep 1
done
i=0;
until [ $i -eq 6 ]
do
echo $i;
let i++;
done