Can anyone help me to define a script which would copy multiple files one by one to multiple folders in other destination based on their shared template names?
For example
I have several folders named like 15apr01d_c_000??gr_000??sq_v0?_000??hl_0000?ex.frames
(the question marks are representing different numbers)
my files are in other folder named 15apr01d_c_000??gr_000??sq_v0?_000??hl_0000?ex.frames.region_000.sum-all_000-0??.box
So what I want is to copy each respective box file to each respective folder as they share the template name 15apr01d_c_000??gr_000??sq_v0?_0000?hl_0000?ex.frames