Thread
:
any sysadmins up? shell question:
View Single Post
10-23-2006, 12:45 AM
fuzebox
making it rain
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
View Public Profile
Visit fuzebox's homepage!
Find More Posts by fuzebox