help-cfengine
[Top][All Lists]
Advanced

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

Re: loops in editfiles


From: Tim Nelson
Subject: Re: loops in editfiles
Date: Fri, 3 Jun 2005 13:44:52 +1000 (EST)

On Thu, 2 Jun 2005, Alex Lovell-Troy wrote:

In working with some files that are modified by other processes than cfengine, I've had to jump through some hoops to do the same AppendToLineIfNotContains on n lines in the file. Unless I've missed something in the documentation, there is no way to select a subset of lines from a file and do some kind of ForEachLineinSelection kind of thing.

Is that the kind of thing that would be useful to others in cfengine3?

In my opinion, editfiles is the thing in need of the most revision. Some others agree. The suggestions for TextSQL (see links below) would probably enable you to do that kind of thing.

http://cfwiki.org/cfwiki/index.php/Editfiles
http://cfwiki.org/cfwiki/index.php/TextSQL

--
Kind Regards,
 
Tim Nelson
Server Administrator
 
P: 03 9934 0888
F: 03 9934 0899
E: tim.nelson@webalive.biz
W: www.webalive.biz
 
WebAlive Technologies
Level 1, Innovation Building
Digital Harbour
1010 La Trobe Street
Docklands Melbourne VIC 3008

This email (including all attachments) is intended solely for the named 
addressee. It is confidential and may contain legally privileged information. If
you receive it in error, please let us know by reply email, delete it from your 
system and destroy any copies. This email is also subject to copyright. No
part of it should be reproduced, adapted or transmitted without the written 
consent of the copyright owner.

Emails may be interfered with, may contain computer viruses or other defects 
and may not be successfully replicated on other systems. We give no
warranties in relation to these matters. If you have any doubts about the 
authenticity of an email purportedly sent by us, please contact us immediately.

reply via email to

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