How do you use wildcards with grep?

How do you use wildcards with grep?
Answer
Using the star sign in grep
  1. grep itself doesn’t support wildcards on most platforms. You have to use egrep to use wildcards. …
  2. @PanCrit: * means the same thing in grep and egrep: it’s a quantifier meaning zero or more of the preceding atom. That’s a completely different concept than the wildcards used by the shell. –
 

Tìm kiếm

Back
Top