copy some rules from a file to all .htaccess files


find /home/*/public_html -name ".htaccess" -exec cp {} "{}_$(date "+%F")_bak" \;

for i in `cat htsearch.txt`; do echo $i; rsync -avzr --append /htaccess $i; sleep 1; done;

Comments

Popular posts from this blog

Using a Linux server to route packets between two private networks

PHP Fatal error: Class 'JFactory' not found

KVM & Qemu