cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Search for wild cards

 
Highlighted

Search for wild cards

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

Re: Search for wild cards

Hey

#cat filename | grep sting1*string2

Regards
Highlighted
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
Highlighted

Re: Search for wild cards

Thanks Folk !!!!!!!!!