Cisco ASR 14000 Series Management Command Reference page 753

Router system
Hide thumbs Also See for ASR 14000 Series:
Table of Contents

Advertisement

Utility Commands on Cisco IOS XR Software
C i s c o C o n f i d e n t i a l - B e t a R e v i e w R 3 . 7. 1
utility fgrep
To search a file for a fixed character string, use the utility fgrep command in EXEC mode or
administration EXEC mode.
Syntax Description
exp expression
script expression-file
file search-file
count
noprefix
nocase
matchfile
linenum
matchline
reverse
usage
WORD
Defaults
The keyboard input (standard input) is used if no files are specified.
If more than one input file is specified, then the filename is displayed before each line.
Command Modes
EXEC
Administration EXEC
OL-17231-01
utility fgrep {exp expression | script expression-file} [WORD | count | noprefix | nocase |
matchfile | linenum | matchline | reverse] [file search-file] [usage]
(-e) A regular expression, whose type is determined by the -e and -f options.
This form is used when only one expression is specified on the command
line. Any names specified after this option are treated as input files.
(-f) A file containing a set of regular expressions, each separated by a new
line. The type of the expressions is determined by the -e and -f options. This
form is used when more than one expression is specified. You can specify
more than one -f option.
The expression-file syntax is:
device:[/directory-path]/filename
Include the alias for the device argument, followed by a colon, and,
optionally, the name of a directory. Use the online help system to display the
available storage devices and network protocols.
The file used for the search. Replace the search-file argument with the device
and directory path of the file. The search-file syntax is:
device:[/directory-path]/filename
(Optional) (-c) Displays a count of selected lines.
(Optional) (-h) Displays results without a filename prefix attached to the
matched lines. This option applies only when more than one file is searched.
(Optional) (-i) Ignores uppercase and lowercase distinctions during
comparisons.
(Optional) (-l) ("el") Displays only the names of files containing the selected
lines.
(Optional) (-n) Before each output line, displays the line's line number.
(Optional) (-x) Includes only input lines selected against an entire fixed
string or regular expression.
(Optional) (-v) Selects only those lines that don't match the specified
patterns.
(Optional) Displays the UNIX options supported by this command.
(Optional) UNIX command-line option string. The maximum number of
characters is 20.
Cisco ASR 14000 Series Router System Management Command Reference
utility fgrep
SMR-751

Advertisement

Table of Contents
loading

Table of Contents