码迷,mamicode.com
首页 > 系统相关 > 详细

shell脚本学习总结09--分支与循环结构

时间:2016-08-12 00:56:02      阅读:257      评论:0      收藏:0      [点我收藏+]

标签:

if 条件语句

if [[ $1 = start  ]];then
    echo start app
elif [[ $1 = stop ]];then
    echo stop app
elif [[ $1 = ... ]];then
....
else echo Please input command! fi

 

shell脚本学习总结09--分支与循环结构

标签:

原文地址:http://www.cnblogs.com/zydev/p/5763264.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!