On Fri, 2006-01-20 at 10:53 -0800, Gary Thornock wrote: > > > > 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.
Or Stuart's trick a while back of doing: find . -type f | while read f; do chmod ... $f ; done > > > /* > PLUG: http://plug.org, #utah on irc.freenode.net > Unsubscribe: http://plug.org/mailman/options/plug > Don't fear the penguin. > */ > /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
