1、if 语句 

if condition1;then
    command1
elif condition2;then
    command2
else
    command3
fi

2、case 语句

case var in
pattern1)
    command1
    ;;
pattern2)
    command2
    ;;
*)
   ;;
esac

3、for 语句

for var in list;do
    command
done

4、while 语句

while codition;do
    command
done
posted on 2017-07-20 23:16  啊哈咧  阅读(173)  评论(0编辑  收藏  举报