1、基本语法
if [ condition ]
then
程序
elif 条件
then 程序
else 程序
fi
或者
if [ condition ];then
-------------------------------------------------------
then不需要另起一行,否则要加 ;
linux if判断
最新推荐文章于 2020-10-06 13:52:02 发布
1、基本语法
if [ condition ]
then
程序
elif 条件
then 程序
else 程序
fi
或者
if [ condition ];then
-------------------------------------------------------
then不需要另起一行,否则要加 ;