Created
January 12, 2018 23:26
-
-
Save tjt263/ed915c93b8626a3d900b185d057fc46d to your computer and use it in GitHub Desktop.
getopts demo
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
#!/usr/bin/env bash | |
while getopts abc opt | |
do | |
case $opt in | |
a) ...;; | |
b) ...;; | |
c) ...;; | |
esac | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment