Forum: CFEngine Help Subject: Re: Append the content of file to another one without checking for duplicate lines Author: bahamat Link to topic: https://cfengine.com/forum/read.php?3,26695,26699#msg-26699
I would switch to using shell commands at that point. It isn't the cleanest option, but since you're truncating the data anyway you can save a lot of unnecessary processing. bundle agent biginsert { commands: "/bin/cat /tmp/bigdata > /tmp/bigfile" handle => "insert_data_to_file", comment => "Truncate /tmp/bigfile and replace with the contens of /tmp/bigdata.", contain => in_shell; } body contain in_shell { useshell => "true"; } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine