[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 <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.
>
>
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@gnu.org
> http://mail.gnu.org/mailman/listinfo/help-cfengine
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272 Email: Mark.Burgess@iu.hio.no
Fax : +47 22453205 WWW : http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- HashCommentLinesMatching, Akop Pogosian, 2003/03/27
- Re: HashCommentLinesMatching, Billy Allan, 2003/03/28
- Re: HashCommentLinesMatching, Andrew Stribblehill, 2003/03/28
- Re: HashCommentLinesMatching, Billy Allan, 2003/03/28
- Re: HashCommentLinesMatching,
Mark . Burgess <=
- Re: HashCommentLinesMatching, Akop Pogosian, 2003/03/31
- Re: HashCommentLinesMatching, Mark Burgess, 2003/03/31
- Re: HashCommentLinesMatching, Andrew Stribblehill, 2003/03/31
- Re: HashCommentLinesMatching, Mark . Burgess, 2003/03/31
- Re: HashCommentLinesMatching, clemens fischer, 2003/03/31
- Re: HashCommentLinesMatching, Mark . Burgess, 2003/03/31
- Re: HashCommentLinesMatching, clemens fischer, 2003/03/31
- Re: HashCommentLinesMatching, Akop Pogosian, 2003/03/31