Run this
find /var/www/html/client/ -type d -name 'com_jcalpro' | grep 'administrator' | sed 's#^#cp /var/www/html/jcalupdate/a
If it produces the command that you would use to manually copy, add | sh next to it and run again. Similarly, for non administrator, you can use
find /var/www/html/client/ -type d -name 'com_jcalpro' | grep -v 'administrator' | sed 's#^#cp /var/www/html/jcalupdate/c
Main Topics
Browse All Topics





by: arober11Posted on 2009-08-28 at 12:31:50ID: 25210890
#!/bin/bash [0-9][0-9] ` com_jcalpr o /components/com_jcalpro $component " "$webSITE/httpdocs/$compon ent"
for webSITE in `ls -d /var/www/html/client/[0-9]
do
for component in /administrator/components/
do
cp -f "/var/www/html/jcalupdate/
done
done