Linux / DevOps · Flashcard

Which grep flag performs a case-insensitive match?

  • Agrep -i pattern file
  • Bgrep -c pattern file
  • Cgrep -l pattern file
  • Dgrep -n pattern file

Why this is the answer

-i ignores case, matching both upper and lower letters. -c only prints the count of matching lines, not the matches themselves.

Official docs
Study in Gnoseed →