Forum: Cfengine Help Subject: rename on copy Author: mlebel Link to topic: https://cfengine.com/forum/read.php?3,16922,16922#msg-16922
Hello, I have a simple task for which I have no clue how to proceed so be gentle with me. I want to copy from a source directory files matching a known pattern but for the destination I want a different pattern. so basically something like "destdirectory" file_select => include("sourcepattern"), rename => newname("destpattern"), copy_from => cp("sourceDir"), depth_search => recurse("1"); So how do I specify something like file ending with ".dr" should be copy and renamed without the ".dr" suffixe? Marco _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine