Re: chmod -R +x for directories only
- From: Big and Blue <No_4@xxxxxxxxxxxxx>
- Date: Tue, 30 Aug 2005 19:51:59 +0100
Bruce Stephens wrote:
Yep, that'll do. Or, in zsh:
chmod 711 **/*(/) or for i in **/*(/) chmod 711 $i or for i in ${(f)"$(find . -type d)"} chmod 711 $i
or, if you have a file produced by "find . -type d > directories" you can do things like chmod 711 ${(f)"$(<directories)"}
All of which (well - not sure how the last one is handled internally) will fail when you have a large number of matches and the resulting list is longer than the maximum length of a command line.
"xargs" comes with "find" for a good reason - to overcome this issue of maximum command line length.
-- Just because I've written it doesn't mean that either you or I have to believe it. .
- Follow-Ups:
- Re: chmod -R +x for directories only
- From: Bruce Stephens
- Re: chmod -R +x for directories only
- References:
- chmod -R +x for directories only
- From: billy
- Re: chmod -R +x for directories only
- From: billy
- Re: chmod -R +x for directories only
- From: Keith Matthews
- Re: chmod -R +x for directories only
- From: Buzzbomb
- Re: chmod -R +x for directories only
- From: Bruce Stephens
- chmod -R +x for directories only
- Prev by Date: Re: chmod -R +x for directories only
- Next by Date: Re: chmod -R +x for directories only
- Previous by thread: Re: chmod -R +x for directories only
- Next by thread: Re: chmod -R +x for directories only
- Index(es):