Nakarin, Thanks for your suggestion but my problem is not so much how many files I have at the source it is more that I do not know their name before hand they can have any name but will have the .dr suffix.
Marco -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Monday, April 19, 2010 5:01 PM To: [email protected] Subject: Cfengine Help: Re: rename on copy Forum: Cfengine Help Subject: Re: rename on copy Author: phnakarin Link to topic: https://cfengine.com/forum/read.php?3,16922,16924#msg-16924 How many .dr files would you like to copy? If there are not too many of them and you don't mind creating a file list, you could do something like the following; For me, it looks like nice and simple. vars: any:: "my_list" slist => { "001", "002", "003", "004", "005" }; files: any:: "/tmp/destdir/$(list)" copy_from => local_cp("/tmp/sourcedir/$(list).dr"); Cheers, --Nakarin _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list [email protected] https://cfengine.org/mailman/listinfo/help-cfengine
