bash case statement
Shell
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:
- Title
- abbreviated stat for git
- Category
- Shell
- Title
- install redux
- Category
- Shell
- Title
- install kubernetess on mac
- Category
- Shell
- Title
- setup mysql ubuntu
- Category
- Shell
- Title
- install node js ubuntu
- Category
- Shell
- Title
- get git remote url
- Category
- Shell
- Title
- linux grep
- Category
- Shell
- Title
- installing helm and tiller on minikube
- Category
- Shell
- Title
- linux restrict process network access
- Category
- Shell
- Title
- add git user and email
- Category
- Shell
- Title
- npm list global packages
- Category
- Shell
- Title
- randomly choose n rows from a file linux
- Category
- Shell
- Title
- git change remote origin address
- Category
- Shell
- Title
- how to check upstream git
- Category
- Shell
- Title
- grep cheat sheet
- Category
- Shell
- Title
- bash get first argument
- Category
- Shell
- Title
- import jar file
- Category
- Shell
- Title
- install metasploit in kali linux
- Category
- Shell
- Title
- tab to csv command line
- Category
- Shell
- Title
- hash bang bash
- Category
- Shell
- Title
- powershell search array
- Category
- Shell
- Title
- linux screen brightness command line
- Category
- Shell
- Title
- create a symlink
- Category
- Shell
- Title
- create a screen screen session tmux
- Category
- Shell
- Title
- git reset origin
- Category
- Shell
- Title
- kill process on port
- Category
- Shell
- Title
- linux show version
- Category
- Shell
- Title
- is it possible to check with my website if an app is installed?
- Category
- Shell
- Title
- set git origin
- Category
- Shell
- Title
- ubuntu unzip file
- Category
- Shell
- Title
- git remove Untracked files
- Category
- Shell
- Title
- gatsby image plugin
- Category
- Shell
- Title
- git list user and email
- Category
- Shell
- Title
- view permissions linux
- Category
- Shell
- Title
- yarn change version
- Category
- Shell
- Title
- git push set upstream
- Category
- Shell
- Title
- linux terminal colors confusing
- Category
- Shell
- Title
- bash delete folder
- Category
- Shell
- Title
- latex number listing as equation
- Category
- Shell
- Title
- kill process in windows powershell
- Category
- Shell
- Title
- git push existing code to new repository
- Category
- Shell
- Title
- how to use sass in react without eject
- Category
- Shell
- Title
- powershell command line variables
- Category
- Shell
- Title
- git revert merge
- Category
- Shell
- Title
- vim command to open a file
- Category
- Shell
- Title
- linux version command
- Category
- Shell
- Title
- unstage staged files git
- Category
- Shell
- Title
- grep regex not
- Category
- Shell
- Title
- git reset
- Category
- Shell
- Title
- insall git onec2
- Category
- Shell
- Title
- install nginx on ubuntu 18.04
- Category
- Shell
- Title
- how to stop a port in macos
- Category
- Shell
- Title
- foreach loop powershell
- Category
- Shell
- Title
- bash count lines
- Category
- Shell
- Title
- run jar file command line
- Category
- Shell
- Title
- ubuntu storage check
- Category
- Shell
- Title
- install pytorch cuda 10
- Category
- Shell
- Title
- get local node version
- Category
- Shell
- Title
- ubuntu list users
- Category
- Shell
- Title
- centos 7 install iptables
- Category
- Shell
- Title
- brew minikube custom version install
- Category
- Shell
- Title
- vuetify install
- Category
- Shell
- Title
- multi line comment in shell script
- Category
- Shell
- Title
- rename local branch github
- Category
- Shell
- Title
- install gatsby typography
- Category
- Shell
- Title
- recover lost file git
- Category
- Shell
- Title
- ERR_NO_CERTIFICATES: Encountered adb error: NoCertificates. ionic
- Category
- Shell
- Title
- wheres i3 config file
- Category
- Shell
- Title
- r package DESCRIPTION multiple lines description
- Category
- Shell
- Title
- mysqldump
- Category
- Shell
- Title
- how to install pytorch 0.4.1
- Category
- Shell
- Title
- docker exc into mongo shell
- Category
- Shell
- Title
- rename multiple files linux
- Category
- Shell
- Title
- linux find files multiple
- Category
- Shell
- Title
- laravel create controller
- Category
- Shell
- Title
- pytesseract
- Category
- Shell
- Title
- linux check used space in folder
- Category
- Shell
- Title
- how to check in which brach we are in git
- Category
- Shell
- Title
- git command to get the repo url
- Category
- Shell
- Title
- how to install programs in ubuntu using terminal
- Category
- Shell
- Title
- docker no space left on device ubuntu but only 75% use?
- Category
- Shell
- Title
- react native install
- Category
- Shell
- Title
- git clone repo with name
- Category
- Shell
- Title
- git authentication failed
- Category
- Shell
- Title
- installing helm v2 and tiller on minikube
- Category
- Shell
- Title
- check apache version ubuntu
- Category
- Shell
- Title
- git ignore node_modules
- Category
- Shell
- Title
- babel json loader
- Category
- Shell
- Title
- directory diff
- Category
- Shell
- Title
- how to check if pip is installed
- Category
- Shell
- Title
- "at" ubuntu script dschedule
- Category
- Shell
- Title
- install pandas
- Category
- Shell
- Title
- rename remote branch in git
- Category
- Shell
- Title
- remove remote git
- Category
- Shell
- Title
- git clean all submodules on branch switch
- Category
- Shell
- Title
- Error: ENOSPC: System limit for number of file watchers reached
- Category
- Shell
- Title
- touch for powershell
- Category
- Shell
- Title
- how to make a beep in cmd
- Category
- Shell
- Title
- nano edit a file
- Category
- Shell
- Title
- remove yum package
- Category
- Shell