Last active
March 27, 2019 22:24
-
-
Save blackzphoenix/92f9f59cfc5ac3b218375f67b3fd67c8 to your computer and use it in GitHub Desktop.
case statement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| case $variable-name in case $variable-name in | |
| pattern1) pattern1|pattern2|pattern3) | |
| command1 command1 | |
| ... ... | |
| commandN commandN | |
| ;; ;; | |
| pattern2) pattern4|pattern5|pattern6) | |
| command1 command1 | |
| ... ... | |
| commandN commandN | |
| ;; ;; | |
| patternN) pattern7|pattern8|patternN) | |
| command1 command1 | |
| ... ... | |
| commandN commandN | |
| ;; ;; | |
| *) *) | |
| esac esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment