Parse command-line flags with getopts
Use the built-in `getopts` loop to read short flags in a script. Handle a value-bearing flag and a plain switch.
Sign in to start the labUse the built-in `getopts` loop to read short flags in a script. Handle a value-bearing flag and a plain switch.
Sign in to start the lab