Return to Snippet

Revision: 42446
at March 8, 2011 05:05 by dan_hoerr

Updated Code

find /home/xxxxx/domains/ -type d -print0 | xargs -0 -i{} cp /home/xxxxx/domains/ {}/index.php

exit 0

Revision: 42445
at March 5, 2011 09:10 by dan_hoerr

Initial Code
for i in `find /home/xxxxx/domains/ -type d`
    cp /home/xxxxx/domains/ $i/index.php
exit 0

Initial URL

Initial Description
currently formatted for use on mediatemple server.  replace file path with absolute path of resources.

Initial Title
add file to all directories recursively

Initial Tags
file, copy, directory

Initial Language