cancel
Showing results for 
Search instead for 
Did you mean: 

Search for wild cards

Search for wild cards

How to Search for wildcard strings in a single file or multiple files.
3 REPLIES
Oviwan
Honored Contributor

Re: Search for wild cards

Hey

#cat filename | grep sting1*string2

Regards
Arturo Galbiati
Esteemed Contributor

Re: Search for wild cards

Hi,
grep -e "*" -e "?" fileA fileB ... fileZ

where wild cards are:
*
?

feel free to add ant wildcards you need eclosed in double quote.

i.e:
grep -e "*" -e "?" fileA fileB
fileA:hotmail*.com
fileA:hp?.com
fileB:*somebody@xyz.com

HTH,
Art

Re: Search for wild cards

Thanks Folk !!!!!!!!!