while getopts a:bc arg ; docase $arg ina ) echo "$OPTIND" ;;b ) echo "$OPTIND" ;;c ) echo "$OPTIND";;esacdoneWhat does the colon(':') after 'a' in the first line signify ?"
The getopts command ensures that a parameter is passed for -b option
It signifies that u have to either specify -a option or you have to specify both -b and -c options
The ":" has no effect in the command
The getopts command ensures that a parameter is passed for -a option