base command | exclude

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

Syntax

base command | exclude REGEX

Parameters

base command
Specifies the base command for filtering the output.
exclude REGEX
Specifies the token or expression to match for hiding 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 hides the base command output lines that match the expression.

device# show running-config | exclude "ethernet 0" | exclude shutdown 

ntp enable 
ntp server 1.in.pool.ntp.org 
ntp server 2.2.2.2 
ntp server 2.1.1.1 
ntp server 3.2.2.2 
ntp server 3.2.2.1 
interface management 0 
  ip address dhcp 
  no ipv6 address dhcp