base command | until

Stops displaying the base command output until a match is found for the specific token or expression.

Syntax

base command | until REGEX

Parameters

base command
Specifies the base command for filtering the output.
until REGEX
Specifies the token or expression to match from the base command output.

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 stops displaying the base command output until a match is found.

device# show running-config | until "interface ethernet 0/2" 

ntp enable 
ntp server 2.1.1.1 
ntp server 3.2.2.2 
ntp server 3.2.2.1 
ntp server 1.in.pool.ntp.org 
ntp server 2.2.2.2 
interface ethernet 0/1 
  shutdown 
interface ethernet 0/2