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

# Disregarding Output That Does Not Match 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 disregard text that matches a regular expression:

- Specify the except command after the pipe symbol.

The following example displays information about configuration interfaces with the exception of the family information for each interface:

    user@host> show configuration interfaces |except family
    lo {
      unit 0 {
          inet {
            address 192.0.0.1;
          }
        }
      }
    }
    eth0 {
      unit 0 {
          inet {
            address 10.27.7.45/24;
          }
        }
      }
    }

#### Related Topics

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

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