Get the App
SLTechnology News&Howtos  ›  Servers  › 

Basic syntax of case

Shulou Source: shulou.com Published: 2022-06-02 07:11:33 10月04日 Update

Case basically uses 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

Tags: Grammar Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Information Linux Huawei Microsoft MariaDB