Multiple choice

Which of the following options is used with grep command in UNIX to print out the line number before printing the matching line?

  1. -c

  2. -v

  3. -n

  4. -l

  5. -x

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

This option is used with grep command in UNIX to print out the line number before printing the matching line.