bash case statement
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
Also in Shell:
- ubuntu command line replace word in files
- how to pip install in folder
- zip current directory mac command line
- how to uncommit my last commit in git
- recursive grep recursion depth
- upgrade yarn version
- bily-101 github
- install ifconfig on ubuntu
- how to install any package in node.js
- ubuntu install apache2
- git config ssl verify false
- scheduler ubuntu cmd
- git amend
- grep regex negation
- git create new branch
- delete git
- upgrade aws cli
- git checkout remote branch
- git global ignore
- copy folders linux
- clear ram linux
- npm install package globally
- tab to csv command line
- git remote push