file permissions
Michael L Torrie
torriem at chem.byu.edu
Fri Jan 20 13:19:59 MST 2006
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.
> */
>
More information about the PLUG
mailing list