Command Prompt for Windows

Command FIND


Search for a text string in the specified files.


FIND [drive:][path]filename "textstring" [/S] [/M]
[drive:][path]filenameSpecifies the text file(s) to search.
textstringSpecifies the text string to find.
/MMatch case.
/SProcess sub-directories.


Command FIND uses the fast Boyer-Moore Algorithm and will only search text files. Non-text file are simply skipped.

Command FIND is not compatible with the DOS command FIND.

Unlike the DOS command FIND, Wildcards are allowed for parameter filename.

Also see macro example 3.