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

# Displaying Output That Matches a Regular Expression

If the regular expression contains any spaces, operators, or wildcard characters, enclose it in quotation marks.

For information about common regular expression operators, see Table 11.

To display output that matches a regular expression:

- Enter match regular-expression after the pipe symbol.

The following example matches all Ethernet interfaces in the interface configuration:

    user@host> show configuration interfaces | match eth
    eth0 {

#### Related Topics

- Disregarding Output That Does Not Match a Regular Expression
- Displaying Output from the First Match of a Regular Expression
- Saving Output to a File
- Using Regular Expressions with the Pipe Symbol

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