base command | include

Displays only the base command output lines that match the specific token or expression.

Syntax

base command | include REGEX

Parameters

base command
Specifies the base command for filtering the output.
include REGEX
Specifies the token or expression to match for displaying the base command output lines.

Modes

Filter mode

Usage Guidelines

The "|" symbol in this command does not act as a separator, but instead provides access to the filter command.

Examples

The following example includes the base command output lines that match the specific expression.

device# show running-config | include interface | exclude "ethernet 0/" 

interface management 0