成都网站建设设计

将想法与焦点和您一起共享

case基本语法

case基本使用

case "$1" in 
        "start"|"START")
        echo "$0 start"
        ;;

        "stop"|"STOP")
        echo "$0 stop"
        ;;

        "restart"|"reload")
        echo "$0 $1...."
        ;;

        *)
        echo 'please input "start|stop|restart|reload" '
        ;;
esac

当前题目:case基本语法
链接地址:http://chengdu.cdxwcx.cn/article/pidcsg.html