Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Findstr Across Multiple File Types

Findstr Across Multiple File Types

Forum Windows XP : Windows XP General Discussion - Findstr Across Multiple File Types

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 


Using findstr to find strings is fairly easy. I am trying to search recursively through a path, but only want to check one of three file types: *.java, *.properties or *.xml.

I know how to do one:

Code :
  1. findstr /pinsc:"my weird search string" *.java




But how to tell findstr to look only in *.java, *.properties and *.xml files without having to run findstr 3 times?

Thanks in advance.

corykv

Sponsored Links
Register or log in to remove.


findstr /pinsc:"my weird search string" *.java *.properties *.xml

Reply to brunob75
Tom's Hardware > Forum > Windows XP > Windows XP General Discussion > Findstr Across Multiple File Types
Go to:

There are 1209 identified and unidentified users. To see the list of identified users, Click here.

Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them