Operating System - HP-UX
1751887 Members
4771 Online
108783 Solutions
New Discussion юеВ

Re: Search for wild cards

 
Md.Shahabuddin
Advisor

Search for wild cards

How to Search for wildcard strings in a single file or multiple files.
3 REPLIES 3
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
Md.Shahabuddin
Advisor

Re: Search for wild cards

Thanks Folk !!!!!!!!!