美文网首页
shell条件判断语句

shell条件判断语句

作者: 人不知QAQ | 来源:发表于2020-03-15 17:25 被阅读0次

语法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

相关文章

网友评论

      本文标题:shell条件判断语句

      本文链接:https://www.haomeiwen.com/subject/usmsxhtx.html