Microsoft Windows XP Professional Administrators Guide

Searches for a string of text in a file and displays any matches.

Syntax

find [/v] [/c] [/n] [/i] "string" [[drive:][path]filename[...]]

Parameters

 

Parameter

Purpose


[/v]

Displays lines that do not match the string.

[/c]

Displays a count of matching lines.

[/n]

Displays a line before each line.

[/i]

Performs a case-insensitive search.

“string”

Specifies the string to search for.

[drive:][path] filename

Specifies the drive, path, and file name of the file to be searched.

Категории