Created
October 5, 2012 21:23
-
-
Save smujohnson/3842501 to your computer and use it in GitHub Desktop.
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
condition=1 | |
case "$1" in | |
1|2) | |
echo "common to 1 and 2" | |
if [[ $condition ]]; then | |
echo "condition met" | |
fi | |
;; | |
3) | |
echo "common to 2 and 3" | |
;; | |
esac | |
echo "after case" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment