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


_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to