help-cfengine
[Top][All Lists]
Advanced

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

Re: ctype regex ?


From: Jan Y. Brueckner
Subject: Re: ctype regex ?
Date: Wed, 21 Jul 2004 12:51:52 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It was possibly my fault,

using [] instead of + or * works
e.g.
~     { /etc/services

~        SetLine "cfengine      5308/tcp        # CFengine"
~        AppendIfNoLineMatching 'cfengine[[:blank:]]5308/tcp.*'

~     }

Ian

Jan Y. Brueckner wrote:
| Hello,
|
| the following regex, does not seem to work for 2.1.7 ;-(. After trying
| for half an hour stripping it down to this simple example I'm getting
| the feeling that ctype classes don't really work? Or is there a point I
| did not think about?
|
| I used AppendIfNoSuchLine until today, however this mechanism would be a
| great simplification in many cases.
|
| ~        { /etc/services
|
| ~         SetLine "cfengine      5308/tcp        # CFengine"
| ~         AppendIfNoLineMatching 'cfengine[:blank:]+.*'
| ~        }
|
| Thanks for the help in advance,
|
| Ian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Netscape - http://enigmail.mozdev.org

iD8DBQFA/krCAkBRz9mJJTERAvOsAJ9tFs/mSWKslBjKE4ZE3lprj2aCjQCeO5yn
WyW0Sf+qfVfq51/raJIEHqw=
=8tiR
-----END PGP SIGNATURE-----



reply via email to

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