[Contents] [Prev] [Next] [Index] [Report an Error]


Filtering Command Output

For operational and configuration commands that display output, such as the show commands, you can filter the output. When you display help about these commands, one of the options listed is |, called a pipe, which allows you to filter the command output. For example:

user@host> show configuration ?
Possible completions:
    <[Enter]>                Execute this command
    |                Pipe through a command
user@host> show configuration | ? 
Possible completions:
    count                Count occurrences
    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
    last                Show the specified number of lines from the end of the output
    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

In configuration mode, two additional filters appear, display and compare:

[edit]
user@host # show | ? 
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
    last                Show specified number of lines from the end of the output
    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

The following filtering operations are available:


[Contents] [Prev] [Next] [Index] [Report an Error]