|
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.
|