help-cfengine
[Top][All Lists]
Advanced

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

Re: Deleting lines in a file from configuration files with editfiles


From: Mark Burgess
Subject: Re: Deleting lines in a file from configuration files with editfiles
Date: Fri, 16 Dec 2005 10:50:53 +0100

Documentation is always useful :-)

DeleteLinesNotContainingFileItems filename
Delete lines in the file that do not contain the any of the substrings
in the file. 
DeleteLinesNotMatchingFileItems filename
Delete lines in the file that do not match the any of the regular
expressions in the file. 
DeleteLinesNotStartingFileItems filename
Delete lines in the file that do not start with any of the substrings in
the file. 


On Fri, 2005-12-16 at 10:39 +0100, Berthold Cogel wrote:
> Mark Burgess wrote:
> > On Thu, 2005-12-15 at 13:28 +0100, Berthold Cogel wrote:
> > 
> >>
> >>I need something like 'DeleteLinesMatchingFromFile', 
> > 
> > 
> > Why not use this then? :-)
> > 
> 
> Do I miss something?
> 
> I get a
> 'Unknown edit action "DeleteLinesMatchingFromFile"'.
> 
> We use cfengine 2.1.15. And the online documentation doesn't show this 
> statement either.
> 
> 
> Regards,
> 
> Berthold





reply via email to

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