Skip to main content
added 2 characters in body
Source Link
Ryan Foley
  • 5.5k
  • 4
  • 25
  • 44

Hi I have seen someone do this a while back but for the life of me cant figure out the quick way to match on multiple strings easily.

objective is to display any lines of config that matches either abc or xyz

e.g show conf | match 'abc||xyz'show conf | match 'abc||xyz' ( <--this line obviously doesn't work in Junos )

Hi I have seen someone do this a while back but for the life of me cant figure out the quick way to match on multiple strings easily.

objective is to display any lines of config that matches either abc or xyz

e.g show conf | match 'abc||xyz' ( <--this line obviously doesn't work in Junos )

Hi I have seen someone do this a while back but for the life of me cant figure out the quick way to match on multiple strings easily.

objective is to display any lines of config that matches either abc or xyz

e.g show conf | match 'abc||xyz' ( <--this line obviously doesn't work in Junos )

Source Link
DrBru
  • 1.6k
  • 3
  • 16
  • 33

Junos cli regex requirement

Hi I have seen someone do this a while back but for the life of me cant figure out the quick way to match on multiple strings easily.

objective is to display any lines of config that matches either abc or xyz

e.g show conf | match 'abc||xyz' ( <--this line obviously doesn't work in Junos )