if 条件语句
if [[ $1 = start ]];then echo start app elif [[ $1 = stop ]];then echo stop appelif [[ $1 = ... ]];then.... else echo Please input command! fi
shell脚本学习总结09--分支与循环结构
原文:http://www.cnblogs.com/zydev/p/5763264.html