Thanks, Neil, that explains it.
dave
-
dave e. baker
On Mon, May 2, 2011 at 7:42 AM, wrote:
> Forum: Cfengine Help
> Subject: Re: Newbie Needs help with regular expression
> Author: neilhwatson
> Link to topic: https://cfengine.com/forum/read.php?3,21706,217
Forum: Cfengine Help
Subject: Re: Newbie Needs help with regular expression
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21706,21724#msg-21724
Sorry, I left it out of the post
body replace_with replace_last(string2) {
replace_value => "${string2}";
/cfagent.testservice.conf near
line 16
I tried to replace with value() but that doesn't work.
Any help is appreciated!!
Thanks,
deb
On Fri, Apr 29, 2011 at 11:17 AM, wrote:
> Forum: Cfengine Help
> Subject: Re: Newbie Needs help with regular expression
> Author: neilhwatson
Forum: Cfengine Help
Subject: Re: Newbie Needs help with regular expression
Author: neilhwatson
Link to topic: https://cfengine.com/forum/read.php?3,21706,21708#msg-21708
Try this.
bundle agent foo {
files:
"/tmp/yourfile"
edit_line => s
Hello,
I am new to Cfengine and am having trouble with regular expressions. For
example, I want to modify a line in a file from,
ifconfig_lm2="up"
to
ifconfig_lm2="up mtu 9000"
I actually tried just deleting and inserting a new line, but the line ends
up at the bottom of the file, and that's