help-cfengine
[Top][All Lists]
Advanced

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

Re: best way to express an 'editfiles' idiom?


From: Adrian Phillips
Subject: Re: best way to express an 'editfiles' idiom?
Date: Mon, 21 Jul 2003 09:22:49 +0200
User-agent: Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux)

>>>>> "Daniel" == Daniel Pittman <address@hidden> writes:

    Daniel> When I manage configuration files with cfengine, I
    Daniel> frequently find myself wanting to express the following
    Daniel> action with 'editfiles':

    Daniel>   Make every line matching "^Value" equal to "Value foo"

Well, I haven't tried this but for some cases where foo is small, how
about :-

  ReplaceAll "^Value [^f][^o][^o]" With "Value foo"

does that work ?

Sincerely,

Adrian Phillips

-- 
Who really wrote the works of William Shakespeare ?
http://www.pbs.org/wgbh/pages/frontline/shakespeare/




reply via email to

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