View Single Post
Old 10-23-2006, 12:40 AM  
PussyTeenies
Confirmed User
 
Join Date: Feb 2005
Location: Haarlem and Amsterdam, capital of the porn world ;-)
Posts: 6,496
use

Code:
for i in $(ls -1d /var/www/|grep -v dir0); do cp /var/www/dir0/myfile.txt /var/www/$i;done
breakdown

you make a listing of all directories except dir0
then you copy the mytext to all directories found ;)
__________________
Need adult hosting?

Contact us!
WARM Hosting

Need an IT solution? or someone to check your site and security? Nossie - IT Professional
PussyTeenies is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote