View Single Post
Old 10-23-2006, 12:45 AM  
fuzebox
making it rain
 
fuzebox's Avatar
 
Industry Role:
Join Date: Oct 2003
Location: seattle
Posts: 22,138
I'd do this:

foreach `ls -d /var/www/dir?`;do cp /var/www/dir0/myfile.txt $i;done

It'll throw up an error about /var/www/dir0 that you can ignore.

At least this works in most installations...
fuzebox is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote