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

KVM & Qemu

PHP Fatal error: Class 'JFactory' not found

docker.errors.APIError: 400 Client Error client is newer than server