Who Me Too'd this topic

Who Me Too'd this topic

L0 Member

Pipe a command and using match regular expressions

Dear experts!

I'm trying to compile a match which matches the following regexp: (debug|monitor).(global|level|pcap|detail\.enable) but it seems like it does not support capturing groups. I've searched for a manual for the match command but struck out. 

 

The end game here is to use it to filter show system state to capture lines containing:

  • debug.global
  • debug.level
  • debug.pcap
  • monitor.detail.enable

Looks like capture lists is supported, ie. show system state | match debug.[glp] but capturing groups is what I need.

 

Does anyone here have a solution or tip?

 

Kind regards,

Patrik

Who Me Too'd this topic