[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Chmodding a whole directory tree



On Thu, 20 Mar 1997 02:27:01 EST Matt Lawrence (matt@access.digex.net)
 wrote:

> At 11:11 PM 3/19/97 -0800, Philippe Troin wrote:
> 
> >Either:
> >	find <dir> -type d | xargs chmod a+rx
> 
> I'd use "find <dir> -type d -exec chmod a+rx {} \;"

This will spawn a process per directory, vs very few...

> (I've had problems with xargs)

Which problems ?

Note that if you have few directories in your tree, you might also:
	chmod a+rx `find <dir> -type d`

Phil.



Reply to: