help-cfengine
[Top][All Lists]
Advanced

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

Re: non-convergent file edit?


From: Jamie Wilkinson
Subject: Re: non-convergent file edit?
Date: Wed, 17 Mar 2004 18:31:51 +1100
User-agent: Mutt/1.5.5.1+cvs20040105i

This one time, at band camp, rader@ginseng.hep.wisc.edu wrote:
> editfiles:
>   { /etc/motd 
>       ReplaceOnce "year is [[:digit:]]{4}" With "year is $(year)" }

editfiles:

   { /etc/motd
       LocateLineMatching "year is [[:digit:]]{4}"
       ReplaceLineWith "year is $(year)
   }

If your script is convergent it will only happen once anyway.

-- 
jaq@spacepants.org                           http://spacepants.org/jaq.gpg




reply via email to

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