.Logan Posted February 27, 2008 Share Posted February 27, 2008 How do I do the following via command line: The following directory: /forums/style_images/1/folder_image_report/ How do I copy folder_image_report into ALL subdirectories of style_images/ ? Something like cp -R folder_image_report /forums/style_images/*/ .... I don't know. Thanks. Link to comment Share on other sites More sharing options...
David Scaife Posted February 28, 2008 Share Posted February 28, 2008 $ cd /forums/style_images $ for i in *; do cp -R 1/folder_image_report $i; done This will come up with an error like "cp: `1/folder_image_report/' and `1/folder_image_report/' are the same file", but just ignore that. Link to comment Share on other sites More sharing options...
Recommended Posts