Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: breadth first globbing
- X-seq: zsh-users 20054
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: jarausch@xxxxxxxxxxxxxxxxxxx
- Subject: Re: breadth first globbing
- Date: Tue, 31 Mar 2015 12:04:37 +0200
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Np+eNugs2vs/8BJkflyWUwqDSIMg/Iw9MzFpby+Nt04=; b=EnW9PdxFPfCjISw8IvNPJnRHtCQ75bxD0z80LvO/e/yOfr/2PwAJ1/zAkif3o9SiTT UkGXwLXuOCEanGzfRcFq8KuFwegDSLgDaiqEqR51c+T/zN9YdSilsW3cqxlT79JkeMtZ PTHzrZ1n+x+hsyGWQYlSkUzUShjno76HiMokssdQiIO8DXUp7iVThg31KsBy11PSeT5z ZridzPQCRwcjPCOP2t2MOwZImDOqrJ6Wg/8HqRAnernezY29079YPr7QJ0PAPGgf/lJ3 TsKIwhDLUq0MplHL0yS4B0htSIsxOKMEDmnFXda/qFb7hWpeWYQpwb1T9X7f2sTVhPYf fuZA==
- In-reply-to: <tYlYiviWgd+7s75YNyNGDs@44xonsNjwD3MgaJWGxYjI>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <tYlYiviWgd+7s75YNyNGDs@44xonsNjwD3MgaJWGxYjI>
On Tue, Mar 31, 2015 at 11:44 AM, Helmut Jarausch
<jarausch@xxxxxxxxxxxxxxxxxxx> wrote:
> Hi,
>
> I have (unpacked) a directory tree where directories don't have the executable bit.
> So, I want to iterate over all directories and set the executable bit.
>
> Standard globbing like **/*(/) doesn't work because zsh tries to cd to the directories
> before I can chmod +x these.
>
> Is there a solution with zsh or is it easier to write a Python script for that.
>
> Many thanks for a hint,
> Helmut
I would probably just chmod -R +x followed by chmod -x **/*(.), that's
assuming you don't have a mix of +x and -x files already though.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author