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

How push notification works for FCM/Apple push (APNs) in network level