Re: Cfengine Help: Re: Newbie Needs help with regular expression

2011-05-02 Thread dave first
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,21724#msg-21724 > > So

Cfengine Help: Re: Newbie Needs help with regular expression

2011-05-02 Thread no-reply
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}"; occurrences =

Re: Cfengine Help: Re: Newbie Needs help with regular expression

2011-05-02 Thread dave first
Thanks, Neil! But I'm still having problems. What is replace_last() in your example? Do you have this define in a custom.cf ?? Here's what I get: Undeclared promise body "replace_last()" was referenced in a promise No such FnCall "replace_last()" in promise @ ./cfagent.testservice.conf near lin

Cfengine Help: Re: Newbie Needs help with regular expression

2011-04-29 Thread no-reply
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 => search_replace( "^ifconfig_lm