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
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to