Cisco Support Tools 1.0 User Guide How to Use the FGrep Utility 223
How to Use the FGrep Utility
Use the FGrep utility to perform a fast search for text patterns through text files.

To Access FGrep from the Dashboard

To run FGrep from the Support Tools Dashboard:
1. Use the System Select screen to select the system you want to work with.
2. From the Dashboard menu, select Common Tools > FGrep.
3. In the Arguments field, enter desired arguments, as described in the Using
section below.
Note: When entering arguments, the FGrep command is already implied. Do not
enter it in the Arguments field.
4. Specify the command duration time or accept the default (60 seconds). This is
the amount of time the command will attempt to run before terminating.
5. If desired, check Elevate Command Priority. This ensures the command will run
regardless of the level of server activity.
6. Click the Run button.

Using FGrep

Syntax
fgrep [ -mvclxinfse? ] <pattern> file1 ...
If no names are specified on the command line, the size of the current directory is
given. Sizes given show the total number of bytes in all of the files within and below
the named directory and the amount of disk space used by the files in and below the
named directory. The disk space is displayed in Kbytes ( 1024 bytes = 1 Kbyte )
Command Line Options
The options for FGrep are:
-m: print the lines that match the pattern (DEFAULT).