[Contents] [Prev] [Next] [Index]


| (pipe)

Syntax

| <compare (filename | rollback n)> <count> <except regular-expression> <find regular-expression> <hold> <match regular-expression> <no-more>
<resolve (full-names)> <save 
filename> <trim number>

Description

Filter the output of an operational mode or a configuration mode command.

 Possible completions:
     compare                Compare configuration changes with a prior version
     count                Count occurrences
     display                Display additional configuration information
     except                Show only text that does not match a pattern
     find                Search for the first occurrence of a pattern
     hold                Hold text without exiting the ---More--- prompt
     match                Show only text that matches a pattern
     no-more                Don't paginate output
     resolve                Resolve IP addresses
     save                Save output text to a file
     trim                Trim specified number of columns from the start line
Options

compare (filename | rollback n)—(Configuration mode only, with the show command only) Compare configuration changes with another configuration file.

count—Display the number of lines in the output.

display detail—(Configuration mode only) Display additional information about the contents of the configuration.

except regular-expression—Ignore a text matching a regular expression when searching the output. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.

find regular-expression—Display the output starting at the first occurrence of text matching a regular expression. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.

hold—Hold text without exiting the --More-- prompt.

match regular-expression—Search for text matching a regular expression. If the regular expression contains spaces, operators, or wildcard characters, enclose it in quotation marks.

no-more—Display output all at once rather than one screen at a time.

resolve—Convert IP addresses to DNS names. Truncates to fit original size unless full-names is specified.

save filename—Save the output to a file or URL. For information about specifying the filename, see How to Specify Filenames and URLs.

trim—Trim specified number of columns from the start line.

Usage Guidelines

See Filter Command Output.



[Contents] [Prev] [Next] [Index]