recursive chmod
Ben Pfaff
pfaffben@msu.edu
27 Nov 2000 17:51:17 -0500
Paul Melson <melson@scnc.holt.k12.mi.us> writes:
> On Mon, Nov 27, 2000 at 05:01:49PM -0500, Ben Pfaff wrote:
> > Or, if you have GNU tools, the following is safer:
> >
> > find / -type d -print0 | xargs -0 chmod --
>
> I didn't think the '-print' and '-0' switches
> were really necessary in this particular case,
> though, since find's only output will be the
> path and filename, so there's only one argument
> that can be passed to xargs anyway. Any reason
> to use them other than to be proper?
What happens otherwise if a filename contains whitespace?
Nothing you'd like.