View Single Post
Old 12-15-2007, 07:16 PM  
GrouchyAdmin
Now choke yourself!
 
GrouchyAdmin's Avatar
 
Industry Role:
Join Date: Apr 2006
Posts: 12,085
Yes, a handful of copy/chown statements makes much more sense than

for n in domain1.com domain2.com domain3.com; do cp file /path/to/$n/htdocs/lolwp/i/steal/passwords/; chown www:www $!/file chmod 664 $!; done

But you should add a few more echo statements and maybe a 'read y' so people can hit enter just to see your badass script give credit before doing it's thing.
__________________
GrouchyAdmin is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote