shell条件判断语句
2020-03-15 本文已影响0人
人不知QAQ
语法1(一个条件):
ifcondition
then
command1
command2
...
fi
语法2(两个条件):
ifcondition
then
command1
command2
...
else
command
fi
if condition1
then
command1
elif condition2
then
command2
else
commandN
fi