Forum: CFEngine Help Subject: Re: How-to insert multi line string at the top of file ? Author: juriskrumins Link to topic: https://cfengine.com/forum/read.php?3,27226,27244#msg-27244
I know you're right and every single line gets inserted before previous one, but the order is not maintained. I fully understand why the order is not maintained while not using "preserve_block". It's clear and there are no questions here. But I can't figure out how to make policy with insert_type => "preserve_block" attribute set to work like I'd like it to work - so to insert multiple lines in certain order before the first line. So when I use preserve_block, then I expect (as far as I understand what is written in docs) multi line string will be treated as a single object/line (read multi line in my case will be equal to single line) and this single line should be inserted before the first line in the file. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine