Andrewd wrote:
I have a bunch of files I need to chmod. All files exist under a main
directory and also under sub directories (of the main). I know I can
chmod 666 *.php but I need to do that in each directory. How do I tell
it to go thru each sub directory and change the files

The find command would usually do it for me:

find -name "*.php" -type f -exec chmod 666 {} \;

or just a plain old chmod -R 666 *.php
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to