I have several folders on one server numbered 1-10. Each folder has multiple files. I need to find the latest file with a pattern name for example :
file 1 : NA_UW_CLUSTER_RESULTS_210916.zip file 2 : UW_CLUSTER_RESULTS_210916.zip
I need to select 'file 2' and copy it to another server having multiple corresponding folders numbered 1-10.
So i need to copy latest file (UW_CLUSTER_RESULTS_210916.zip) with matching pattern from 'folder 1' in 'A' server to 'folder 1' in 'B' server.