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 ?"

  1. The getopts command ensures that a parameter is passed for -b option

  2. It signifies that u have to either specify -a option or you have to specify both -b and -c options

  3. The ":" has no effect in the command

  4. The getopts command ensures that a parameter is passed for -a option


Correct Option: D

Find more quizzes: