How to copy 1 file in 100's of subdirectories
HI.
I have a file called, resources.html and I need this file to goto in a every subdirectory in do_roots directory. What is an easy way to do this? Thank you for your help!!!! |
Quote:
Code:
# cd do_roots |
There's a similar question to this in http://www.linuxquestions.org/questi...d.php?t=423445. If your directory structure starts in /var/www/html and the file to copy is in /tmp/resources.html:
Code:
find /var/www/html -type d -exec cp /tmp/resources.html {} \; |
cd do_roots
find . -type d -exec cp /directory/where/is/resources.html {} \; |
All times are GMT -5. The time now is 04:11 AM. |