Cisco ASR 14000 Series Management Command Reference page 750

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

Advertisement

utility egrep
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 egrep
To search a file or the results of standard input using full regular expressions, use the utility egrep
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
If no files are specified, the keyboard input (standard input) is used.
If more than one input file is specified, then the filename is displayed before each line.
Command Modes
EXEC
Administration EXEC
Cisco ASR 14000 Series Router System Management Command Reference
SMR-748
utility egrep {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
(Optional) 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.
Utility Commands on Cisco IOS XR Software
OL-17231-01

Advertisement

Table of Contents
loading

Table of Contents