René Nyffenegger's collection of things on the web
René Nyffenegger on Oracle - Most wanted - Feedback -
 

findstr [Windows CMD]

C:\> findstr [options] pattern file-name
findstr allows to search for text (as specified with pattern in the file file-name. If file-name contains wildcards (* or ?), it searches in all files that match. The option /S searches in the current directory as well as in its subdirectories.
If pattern contains spaces, it must be specified like so /C:"some text to be searched".
In order to turn pattern into a regular expressions, the /R option must be used.
The /I option searches case insensitive.
It is possible to pipe the result of another command through findstr. For example, the following command finds all files whose name contain either an m or a p:
C:\> dir /B | findstr /R /C:"[mp]"