Re: Cfengine Help: Editing only the first line in a file

2011-04-14 Thread Frans Lawaetz
There is an "occurrences" option to line edit promises. cfengine_stdlib.cf has the following: body replace_with value(x) { replace_value => "$(x)"; occurrences => "all"; } Try setting it to just "first". Frans ___ Help-cfengine mailing list Help-cfen

Cfengine Help: Editing only the first line in a file

2011-04-14 Thread no-reply
Forum: Cfengine Help Subject: Editing only the first line in a file Author: sauer Link to topic: https://cfengine.com/forum/read.php?3,21478,21478#msg-21478 Let me know if I'm missing something. I want to make sure that the first line in a file is a certain value - specifically, if the first lin