Shell if else

语句1
if [ expression ]
then
...
fi

 

语句2
if [ expression ]
then
...
else
...
fi

 

语句3
if [ expression 1 ]
then
...
elif [ expression 2 ]
then
...
elif [ expression 3 ]
then
...
else
...
fi

posted @ 2016-12-13 20:36  智能先行者  阅读(183)  评论(0编辑  收藏  举报