On Thu, Jan 28, 2010 at 03:22:22PM -0600, Diego Zamboni wrote: > Hi, Hello,
> >>>>>> Diego Zamboni wrote: > >>>>>>> > >>>>>>> Hi, > >>>>>>> > >>>>>>> I've been working on putting together an edit_line bundle that does > >>>>>>> the following: > >>>>>>> > >>>>>>> - If a certain pattern exists, replace it with a given string > >>>>>>> - If the pattern does not exist, add the line to the file. I may be way off, but would another sequence like this work: - if you find the pattern, delete it - if you don't find the line, append it That seems equivalent, AFAIK. Regards, -- Francis GUDIN _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine