[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] cp recursive command ?



<snip>
> What about a bit of /bin/bash'ery ;)
</snip>

Ok, one slight mistake!! Just for archives here is one that works ;-)

#!/bin/sh
cd /home/sites/
FILESTOFIX=`cd /home/sites;find |grep .ftphelp`

for i in $FILESTOFIX; do
 echo "***********************************" > $i
 echo " Unauthorized access is prohibited" >> $i
done
echo "All done!"


Regards,

Andy
andy@xxxxxxxxxx
http://www.raqpak.com/ <-- Raq/Qube unofficial PKGs and support advice