What options can be used with grep command?

What options can be used with grep command?
Answer
The grep command supports a number of options for additional controls on the matching:
  • -i: performs a case-insensitive search.
  • -n: displays the lines containing the pattern along with the line numbers.
  • -v: displays the lines not containing the specified pattern.
  • -c: displays the count of the matching patterns.
 

Tìm kiếm

Back
Top