Linux Search Pattern Question: Download Search Pattern PDF
Indicate the right option to search for anything not a letter or number:
a) grep '^[a-zA-Z0-9]'
b) grep '[^a-zA-Z0-9]'
c) grep '[a-zA-Z0-9]'
d) None of the above in Search Pattern
Answer:
b) grep '[^a-zA-Z0-9]'