Multiple choice

In grep command, which of the following is used to print the line number before printing the matching line?

  1. $ grep-c
  2. $ grep-n
  3. $ grep-v
  4. $ grep-i
Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This option is used to print the line number before printing the matching line.