help-cfengine
[Top][All Lists]
Advanced

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

RE: editfiles and pattern matching


From: Ferguson, Steve
Subject: RE: editfiles and pattern matching
Date: Tue, 15 Jul 2003 07:24:48 -0400

Thanks! This seems to do what I want.

The larger question: Is there any reason a pattern match must apply to the
entire line?  Is there any plan to make this work like most other regex
engines or is this the desired behavior?

Steve

> -----Original Message-----
> From: skaar [mailto:skaar@aol.net]
> Sent: Monday, July 14, 2003 2:46 PM
> To: Ferguson, Steve
> Cc: 'help-cfengine@gnu.org'
> Subject: Re: editfiles and pattern matching
> 
> 
> >     # Ensure cfengine port is declared in /etc/services
> >     { /etc/services
> >       SetLine "cfengine 5308/tcp                        # 
> cfengine port"
> >       AppendIfNoLineMatching "^cfengine"
> >     }
> 
> try to match the entire line "^cfengine.*"
> 




reply via email to

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