Linux Search Pattern Question: Download Search Pattern PDF
Indicate the right option to search for BOB, Bob, BOb or BoB?
a) grep -i Bob files
b) grep 'B[oO][bB]' files
c) grep '[BOB]' files
d) grep -v 'Bob' files
Answer:
b) grep 'B[oO][bB]' files