Forum: CFEngine Help Subject: Re: How-to insert multi line string at the top of file ? Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,27226,27242#msg-27242
I'm almost certain that my original statement is still true. edit_line examines the inserted text one line at a time unless preserve_block is used. Thus. I believe the original example in this thread inserts line one in the variable at above line one in the file. Then line two is inserted again above line one in the file. The result is each line is inserted above the previous one. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine