help-cfengine
[Top][All Lists]
Advanced

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

Re: HashCommentLinesMatching


From: Billy Allan
Subject: Re: HashCommentLinesMatching
Date: Fri, 28 Mar 2003 10:15:37 +0000
User-agent: Mutt/1.4i

On Fri, Mar 28, 2003 at 09:52:14AM +0000, Andrew Stribblehill wrote:
> Quoting Akop Pogosian <akopps@CSUA.Berkeley.EDU> (2003-03-28 03:56:36 GMT):
> > Is there a way to hash comment lines that are NOT matching a regexp
> > using this or some other cfengine command? Perhaps cfengine needs a
> > new editing command, HashCommentLinesNotMatching?
> 
> Nah, you've got UnCommentLinesMatching. So just use:
> 
> HashCommentLinesMatching ".*"
> UnCommentLinesMatching "xyzzy"

But that's not nearly as clear or easy to understand as  :


HashCommentLinesNotMatching "xyzzy"


Which would seem to me to leave you with a more understandable config
file...

Billy.




reply via email to

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