2
At the moment I'm doing:
for i in mdx/[0-9][0-9].png; do cp $i ../../d_s_c/images/mdx ; done
But as well as the directory mdx
, I also have other directories called ntt
, etc.
How can I say 'For everything in a subdirectory, copy it across to the same subdirectory over at at ../../d_s_c/images
'?
Bonus points for 'copy if file has changed or does not exist in destination, leave otherwise'. – Richard – 2011-09-16T17:31:19.410