Dos Prompt Home Page Command Prompt Reference
FIND

Searches for a text string in a file or files.

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

/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.
/OFF[LINE]     Do not skip files with offline attribute set.
"string"               Specifies the text string to find.
[drive:][path]filename
                          Specifies a file or files to search.

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

Examples

 

Associated Commands

FINDSTR

 

Top of the Page - Command Prompt Reference Home Page
Last Page Update: 08/03/2012

© Sembee Ltd. 1998 - 2024.

Reproduction of any content on this web site is prohibited without express written consent. Use of this web site is subject to our terms and conditions.

All trademarks and registered trademarks are property of their respective owners. This site is not endorsed or recommended by any company or organisation mentioned within and is to provide guidance only and as such we cannot be held responsible for any consequences of following the advice given.

Sembee Ltd. is registered in England and Wales at 1 Carnegie Road, Newbury, Berkshire, RG14 5DJ.
Registered company number: 4704428. VAT Number GB 904 5603 43.

Server 1