Quote:
Originally Posted by sexybabe
i have sitemap.htm on all my sites (around 150) in my server.i want to chmod from 644 to 666.
is there shell script to mass chmod these particular files?
i tried this code but not working.
chmod -R 666 fullsitemap.htm
|
something like this:
cd /your/web/root
find ./ -name sitemap.htm -exec chmod 666 "{}"\;
It should recursively chmod all the sitemap files in all the subdirectories of your web root.
Or if that has problems, this might work:
cd /your/web/root
chmod 666 `find ./ name sitemap.htm`