bash switch case
case "$1" in
start)
start ;;
stop)
stop ;;
restart)
stop; start ;;
*)
echo $"Usage: $0 {start|stop|restart}"
exit 1
esaccase expression in
pattern1 )
statements ;;
pattern2 )
statements ;;
...
esac
case $1 in
start)
#Start logic
;;
stop)
# Stop logic
;;
*)
# Default logic
echo $"Usage: $0 {start|stop}"
exit 1
;;
esacbash case notation
Also in C++:
- browser sync for linux
- Package 'fslint' has no installation candidate
- how to join any cluster redis
- bash change output color
- ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- no matches found: *.dmg
- env variable for access key and secret key in terraform
- IF NOT DIR BASH
- pyinquier install
- create react native app
- how to convert ui to py pyside2
- adonis make migration
- heroku logs
- linux vga wake up screen
- linux find size of directory and subdirectories
- Refusing to install package with name "mongoose" under a package
- stop port
- installing parse-dashboard with npm
- expo install react-navigation-stack
- grep print only capture group
- batch directory
- linux make a copy of a folder in another foldedr
- uninstall lightdm
- kill process ubuntu