/D:dir: Search a semicolon delimited list of directories
strings: Text to be searched for.
[drive:][path]filename: Specifies a file or files to search.
-?: Display program description.
Use spaces to separate multiple search strings unless the argument is prefixed with /C. For
example, 'FINDSTR "hello there" x.y' searches for "hello" or "there" in file x.y. 'FINDSTR
/C:"hello there" x.y' searches for "hello there" in file x.y.
Regular expression reference:
•
. Wildcard: any character
•
* Repeat: zero or more occurrence of previous character or class
•
^ Line position: beginning of line
•
$ Line position: end of line
•
[class] Character class: any one character in set
•
[^class] Inverse class: any one character not in set
•
[x-y] Range: any characters within the specified range
•
\x Escape: literal use of metacharacter x
•
\<xyz Word position: beginning of word
•
xyz\> Word position: end of word
grep
Note: This tool can be used in both Interactive Mode and Batch Mode. For details on scheduling
this tool to run in batch mode see Using Batch Mode.
Use the Grep utility to perform a regular expression search for text patterns through text files.
To Access Grep from the Dashboard
To run Grep from the Support Tools Dashboard:
Step 1
In the Arguments field, enter desired arguments, as described in the Using section below.
Note: When entering arguments, the Grep command is already implied. Do not enter it in the
Arguments field.
Cisco Support Tools User Guide for Cisco Unified Software Release 2.1(1)
210
Chapter 14: - Using 3rd Party Common Tools
grep