help-cfengine
[Top][All Lists]
Advanced

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

Re: HashCommentLinesMatching


From: Mark . Burgess
Subject: Re: HashCommentLinesMatching
Date: Fri, 28 Mar 2003 23:05:34 +0100 (MET)

Can't you just negate the regular expression?

On 28 Mar, Billy Allan wrote:
> On Fri, Mar 28, 2003 at 09:52:14AM +0000, Andrew Stribblehill wrote:
>> Quoting Akop Pogosian <address@hidden> (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.
> 
> 
> _______________________________________________
> Help-cfengine mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/help-cfengine



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~






reply via email to

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