Forum: CFEngine Help Subject: Re: CFEngine Help: Matching files and replacing files with regex Author: Devastator101 Link to topic: https://cfengine.com/forum/read.php?3,25431,25433#msg-25433
Hi Charles, Thanks for the reply. Your code works with a little modification. Below is the final code that worked for me. files: "/etc/application/" perms => system("0644","root","root"), copy_from => mycopy( "/my/repository/config/files/", "servername" ), file_select => by_name("(^(.*)\.)+conf"), depth_search => recurse("1"); Thanks for your help. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine