--- Corey Edwards <[EMAIL PROTECTED]> wrote: > On Fri, 2006-01-20 at 10:31 -0700, Stuart Jansen wrote: >> On Fri, 2006-01-20 at 10:13 -0700, Russel Caldwell wrote: >>> Is there an easy way of changing file permissions recursively >>> without changing directory permissions? >> >> I know there's already two good responses, but neither is 100% >> correct so I'm tossing my hat in the ring. >> >> find . -type f | xargs chmod u=rwx,g+rx,o= > > To be completely safe you should use null separators to account > for files with spaces. > > find . -type f -print0 | xargs -0 chmod ...
You're right, and that's the main reason I usually use find -exec instead of find | xargs. /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
