blank.gif (43 bytes)

Church Of The
Swimming Elephant

Search:
index.gif

ntcmds00000000.gif

Findstr--Examples

To find all occurances of the word Windows (with an initial capital w) in the file PROPOSAL.TXT, type

findstr Windows proposal.txt

To search every file in the current directory and all subdirectories that contained the word Windows, regardless of the letter case, type

findstr /s /i Windows *.*

To find all occurances of lines that contain the word FOR, preceeded by any number of spaces, (as in a computer program loop) and to include the line number where each occurance is found, type

findstr /b /n /c:" *FOR" *.bas

If you want to search for several different items in the same set of files, create a text file that contains each search criteria on a new line. You can also list the exact files you want to search in a text file. To use the search criteria in the file FINDDATA.TXT and search the files listed in FILELIST.TXT then store the results in the file RESULTS.OUT, type

findstr /g:finddata.txt /f:filelist.txt > results.out

Assume you wanted to find every file in the current directory and all subdirectories that contained the word computer, regardless of the letter case. To list every file containing the word computer, type

findstr /s /i /m "\<computer\>" *.*

Now assume you want to find not only the word computer, but also any other words that begin with the letters comp, such as compliment and compete. Type

findstr /s /i /m "\<comp.*" *.*

More Information About Findstr

ntcmds00000001.gif Findstr--Notes

ntcmds00000001.gif Findstr

Cotse.Net

Protect yourself from cyberstalkers, identity thieves, and those who would snoop on you.
Stop spam from invading your inbox without losing the mail you want. We give you more control over your e-mail than any other service.
Block popups, ads, and malicious scripts while you surf the net through our anonymous proxies.
Participate in Usenet, host your web files, easily send anonymous messages, and more, much more.
All private, all encrypted, all secure, all in an easy to use service, and all for only $5.95 a month!

Service Details

 
.
www.cotse.com
Have you gone to church today?
.
All pages ©1999, 2000, 2001, 2002, 2003 Church of the Swimming Elephant unless otherwise stated
Church of the Swimming Elephant©1999, 2000, 2001, 2002, 2003 Cotse.com.
Cotse.com is a wholly owned subsidiary of Packetderm, LLC.

Packetderm, LLC
210 Park Ave #308
Worcester, MA 01609