Forum: CFEngine Help Subject: Concatenating multiple files Author: SteveJake Link to topic: https://cfengine.com/forum/read.php?3,27049,27049#msg-27049
HI all, Is there a way to use CFEngine to build a file by concatenating the contents of other files into a single file? I'm trying to do this without commands or transforms as I'm hoping to use convergence to prevent the file from being replaced if nothing would change. What I'm looking for is something that will allow me to lay down a base file, and then based on classes, append one or more other files to that base. For example, there could be three files named config.base, config.class1, and config.class2. What I want to end up with is a single file called 'config' that has the contents of the base, and the contents of either or both of the class1 and class2 files depending on the class(es) of the machine. Any thoughts? Thanks! -Steve J. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine