help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adding OR editing line only if not present


From: Jamie Wilkinson
Subject: Re: Adding OR editing line only if not present
Date: Tue, 11 Feb 2003 10:13:07 +1100
User-agent: Internet Messaging Program (IMP) 3.1

Quoting Florian Thiel <thiel@ksan.de>:

> Jamie Wilkinson schrieb:

> > This is the only way you can do it.  But I'd like to point out that the
> > ReplaceLineWith takes a quoted-string, not a regex, so you don't need to
> escape
> > the fullstops.  I'd also not bother with the BeginGroupIfNoMatch line.
> 
> If I do not use BeginGroupIfNoMatch the line will be changed every time
> the script runs, doesn't it? But that is exactly the point!

Of course, you are right.  I've been getting tripwire warnings from cfengine
modified files every day, so I'm going to have to modify my inputs to use the
BeginGroupIfNoMatch command.

Jamie




reply via email to

[Prev in Thread] Current Thread [Next in Thread]