Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    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 Common Regular Expression Operators in Operational Mode Commands in Using Regular Expressions with the Pipe Symbol.

    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;
          }
        }
      }
    }

    Published: 2014-12-09