Bird
0
0

Which option with grep makes the search case-insensitive?

easy📝 Conceptual Q2 of 15
Linux CLI - Text Processing
Which option with grep makes the search case-insensitive?
A-i
B-v
C-r
D-n
Step-by-Step Solution
Solution:
  1. Step 1: Recall grep options

    The -i option tells grep to ignore case differences when searching.
  2. Step 2: Eliminate other options

    -v inverts match, -r searches recursively, -n shows line numbers.
  3. Final Answer:

    -i -> Option A
  4. Quick Check:

    Case-insensitive grep = -i [OK]
Quick Trick: Use -i for case-insensitive search with grep [OK]
Common Mistakes:
  • Using -v instead of -i
  • Confusing -r with case-insensitive
  • Forgetting -i option

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes