add file to all directories recursively

/ Published in: Bash
Save to your folder(s)

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

Copy this code and paste it in your HTML
  1. #!/bin/bash
  3. find /home/xxxxx/domains/ -type d -print0 | xargs -0 -i{} cp /home/xxxxx/domains/ {}/index.php
  5. exit 0

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.