shell学习笔记(二):条件

if

if condition
then
      command
elif
      command
else
      command
fi

for

for loop in array
do
    command
done

while

while true
do
    command
done

你可能感兴趣的:(shell学习笔记(二):条件)