[j-nsp] "replace pattern" Command & White Spaces

Mark Tinka mark.tinka at seacom.mu
Sun Jul 31 16:53:04 EDT 2016



On 30/Jul/16 21:19, Phil Shafer wrote:

> Yup, it's field-oriented, since it's making changes in the database
> directly; we're not generating text, pattern matching, and then
> making change payloads.  Instead we're traversing the database,
> pattern matching each "leaf" in the database.  So you get "^" and
> "$", but not keywords like metric.  It's definitely a trade-off,
> but we've never really hidden the fact that we're not really keeping
> the data in a straight text file.

Makes sense.

I'll work with "sed" in the FreeBSD CLI itself. A little more involved,
but will get the job done.

Would be good if JTAC got some training on this. It seems they don't
know that "replace" does not work on Junos syntax.

Mark.


More information about the juniper-nsp mailing list