help-cfengine
[Top][All Lists]
Advanced

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

Re: Need for the same set of commands for Insert as well as Append


From: Brendan Strejcek
Subject: Re: Need for the same set of commands for Insert as well as Append
Date: Sun, 30 Oct 2005 18:32:40 -0600
User-agent: Mutt/1.5.6+20040818i

Tim Nelson wrote:

>       ResetSearch 0
>       LocateLineMatching ".*THIS IS THE LAST LINE.*"
>       BeginGroupIfNoSuchLine "ThisLine"
>               InsertFile "datafile"
>       EndGroup
>       CatchAbort

I could be wrong, but I think cfagent requires something like:

    LocateLineMatching "^.*THIS IS THE LAST LINE.*$"

for the regex to match.

Best,
Brendan

--
Senior System Administrator
The University of Chicago
Department of Computer Science
http://www.cs.uchicago.edu/people/brendan




reply via email to

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