From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14355 invoked by alias); 12 Feb 2014 09:44:54 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18427 Received: (qmail 13077 invoked from network); 12 Feb 2014 09:44:49 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=i37I1SYyojRXKhpL5GL2JoBVGPNj2K7DSKrobqPX5y4=; b=fJyHlrP+XAGvNycwVxnfMOEyZyWZfJyN0EHJqsDDEfdo6O+NdDfuFE5p59Odrv5grp bmq1Acm8NW8IXnky6FViSdFcBbhDd6pmtVc4+iah6QSsmW1daC0VCnsWjQjXa3W2L8dc Cbb3RJspL23J3hZeQ5d/tKdhHuPZpx06SqJyGF9Mykr4mI2387WXQLqFlbD0Zp5rSdQ9 1SX+vZ2ayDQ4Kokx8OpK+6HVuej2+8isUVbDHDIB+c+4dGqyHyVpN2TNNL2vQU8k+Qgl kVRypAgFrmw+PN4JnY7/5CRt93md28172FrNBq/4A0KnKM2PmHilPSMAY2vbv7/fyLh+ /zXw== X-Received: by 10.224.79.19 with SMTP id n19mr65461195qak.99.1392198283241; Wed, 12 Feb 2014 01:44:43 -0800 (PST) MIME-Version: 1.0 In-Reply-To: References: <140211211309.ZM24838@torch.brasslantern.com> From: Leonardo Barbosa Date: Wed, 12 Feb 2014 07:44:03 -0200 Message-ID: Subject: Re: executing commands in directories containing specific files To: Michel Cc: Bart Schaefer , zsh-users@zsh.org Content-Type: multipart/alternative; boundary=047d7bdc8040212dab04f2326c5c --047d7bdc8040212dab04f2326c5c Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable All, thanks a lot. That worked! On Wed, Feb 12, 2014 at 6:33 AM, Michel wrote: > > > > I like using the (e) flag, but it's sometimes tricky to get right on th= e > > first try because you have to be careful to match up the parens in the > > reply=3D(...) assignment, the quotes around the expression, the outer s= et > > of delimiters (I used [...] below) and the parens around the whole thin= g: > > > > rm **/*.tex(.e['reply=3D(${REPLY:r}.aux)']) > > > > But you can also use colon-modifiers as glob qualifiers, so if the .tex > > never appears anywhere but at the end: > > > > rm **/*.tex(.:s/.tex/.aux) > > > > thanks for this solutions interesting ! > > > > > > If you've already got the filenames, say, in an array: > > > > texi=3D( $(find $HOME -type f -name '*.tex') ) > > > > Why use find instead the glob way=E2=80=AF: > texi=3D( **/*.tex(.) ) > > When the result is use as a stream find is a beter way but to create an > array ? > _____________________ > Michel BARRET > --047d7bdc8040212dab04f2326c5c--