如何在shell脚本的elif中使用if语句?
如何在shell脚本的elif中使用if语句如何在shell脚本的elif中使用if语句?,shell,Shell,如何在shell脚本的elif中使用if语句 if condition #if condn then statments elif statements if cond1 then statement if else statemnet elif需要命令,fi终止if命令 if command1 then statments elif command2 then statements if command3 then s
if condition #if condn
then
statments
elif
statements
if cond1
then
statement
if
else
statemnet
elif
需要命令,fi
终止if命令
if command1
then
statments
elif command2
then
statements
if command3
then
statements
fi
else
statements
fi
你试过谷歌搜索吗?什么?
elif
之后的条件在哪里?目前,它将充当一个else
。。。