FIND

RECENT NEWS

12/18/2015 - Hello! We're excited to announce that Mental Works Computing Software will soon be featuring

12/11/2015 - We're going to announce Dr.Batcher 3.0 Alpha with batch files debugger support soon. If you want to start...

News history...

TESTIMONIALS

Rob van der Woude:
"Mental Works Computing Software has created a nice tool for...

Andrew Jaritsyn:
“I used to write batch files with the help of Notepad, but...

Steve H.:
“This tool helped me to write some batch files in a couple...

More...

FIND

Searches for the specified string in text file(s) and reports lines found with that string.

Syntax:

FIND [/v] [/c] [/n] [/i] [/off[line]] “String” [[Drive:][Path]FileName[...]]

/v – displays lines that don’t contain the specified string.

/c – counts lines containing the string.

/n – displays line numbers.

/i – case-insensitive search.

/off and /offline – doesn’t skip files with offline attribute.

String – the required text to search for.

[Drive:][Path]FileName – file(s) or folder(s) where you want to search for the specified text. Wildcards are NOT allowed.

Usage:

By default, FIND command performs case-sensitive search.

If the search string contains quotes, you should use double quotes to make FIND understand this.

If you omit the FileName parameter, FIND command will search for the specified string in the standard input.

If you specify /n and /c together, FIND command will count the amount of strings NOT containing the specified search string.

Search string should not contain carriage returns.

The maximum line length for files supported by FIND command is 1070 characters.

Examples:

Find text “Not for sale” in Ads folder:

FIND “Not for sale” C:\Work\Ads

 

Subscribe batch files programming newsletter (no spam):

Subscribe

Unsubscribe