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:

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 Documentation