linux if判断
1、基本语法
if [ condition ]
then
程序
elif 条件
then 程序
else 程序
fi
或者
if [ condition ];then
-------------------------------------------------------
then不需要另起一行,否则要加 ;
1、基本语法
if [ condition ]
then
程序
elif 条件
then 程序
else 程序
fi
或者
if [ condition ];then
-------------------------------------------------------
then不需要另起一行,否则要加 ;