Site hosted by Angelfire.com: Build your free website today!

MS-DOS External Commands

The FIND Command

Description:

Searches for a text string in a file or files.

Command Syntax:

FIND [/V] [/C] [/N] [/I] "string" [[drive:][path]filename[ ...]]

Explanation of Syntax:

[/V] displays all lines NOT containing the specified string.
[/C] displays only the count of lines containing the string.
[/N] displays line numbers with the displayed lines.
[/I] ignores the case of characters when searching for the string.
"string" specifies the text string to find.
[drive:][path]filename specifies a file or files to search.

If a pathname is not specified, FIND searches the text typed at the prompt or piped from another command.

Command Use:

This command can be used at the command prompt and in batch files.