The Command line interface

Windows Grep supports an extensive command line interface that enables it to be run from a command line similarly to running the DOS or UNIX versions of grep utilities.

The command line takes two forms:

Command line examples

c:\windows> grep32 -r -C- Windows *.ini

Search all *.ini files for the string Windows in the current directory (c:\windows). Recurse subfolders, but don't count files first.

c:\windows> grep32 -r- -W Grep *.pas "c:\Delphi Work\Windows Grep"

Search all *.pas files for the string Grep in folder c:\delphi work\Windows Grep, but don't recurse subfolders and find whole words only.