Forum: Cfengine Help Subject: Re: Editing only the first line in a file Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,21478,21531#msg-21531
I can't think of a better way. Cf's editing does not go by line numbers. Even if it did Cf would still have to load the entire file into memory in order to index the lines. Are you using ifelapsed to limit the number of searches? That would cut down on the expensive reruns. In the long run it might be cheaper and better, to have Cfengine distribute those Perl files for you. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine