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 )

1 Answer 1


It's just slightly different syntax, if you're trying to match lines containing specific strings, you'd use:

show configuration | match "abc|xyz"

Also, here's the documentation in case you want to get fancier: JUNOS Command Regex

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.