Multiple choice technology architecture

Output of the grep command? grep "^[a-zA-Z]" pgm.s

  1. This displays every line in pgm.s whose first character is not a #.

  2. This displays every line in pgm.s whose first character is a letter.

  3. This displays every line in pgm.s whose first character is a Numeric.

  4. None.

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The pattern ^[a-zA-Z] matches lines starting with an uppercase or lowercase letter. The ^ anchors to the beginning of the line, and [a-zA-Z] matches any single alphabetic character. This will not match lines starting with #, numbers, or other symbols.