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
| # Getopts - parsing arguments | |
| while getopts "hs:c:" opt; do | |
| case $opt in | |
| c) | |
| echo "Argument $opt at position $OPTIND equals $OPTARG" | |
| ;; | |
| s) | |
| echo "Argument $opt at position $OPTIND equals $OPTARG" | |
| ;; | |
| h) |
OlderNewer