zsh-users
 help / color / mirror / code / Atom feed
From: Leonardo Barbosa <barbosa.leonardo@gmail.com>
To: Michel <michel.barret@gmail.com>
Cc: Bart Schaefer <schaefer@brasslantern.com>, zsh-users@zsh.org
Subject: Re: executing commands in directories containing specific files
Date: Wed, 12 Feb 2014 07:44:03 -0200	[thread overview]
Message-ID: <CAMXWGTwau=kL8VN_3+veiYLgno-EfGTY-nwusAeLsRGnFLcS2g@mail.gmail.com> (raw)
In-Reply-To: <CADprNYmKm2ezqaRsxBzYnrkzSkVgYeU6L6Bp8uZea60_MYUYjA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1043 bytes --]

All, thanks a lot. That worked!




On Wed, Feb 12, 2014 at 6:33 AM, Michel <michel.barret@gmail.com> wrote:

> >
> > I like using the (e) flag, but it's sometimes tricky to get right on the
> > first try because you have to be careful to match up the parens in the
> > reply=(...) assignment, the quotes around the expression, the outer set
> > of delimiters (I used [...] below) and the parens around the whole thing:
> >
> >     rm **/*.tex(.e['reply=(${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=( $(find $HOME -type f -name '*.tex') )
> >
>
> Why use find instead the glob way :
> texi=( **/*.tex(.) )
>
> When the result is use as a stream find is a beter way but to create an
> array ?
> _____________________
> Michel BARRET
>

  reply	other threads:[~2014-02-12  9:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-12  0:11 Leonardo Barbosa
2014-02-12  0:35 ` Jan Larres
2014-02-12  1:17   ` Philip Dexter
2014-02-12  2:17     ` Jan Larres
2014-02-12  1:53 ` Chris Johnson
2014-02-12  5:13 ` Bart Schaefer
2014-02-12  8:33   ` Michel
2014-02-12  9:44     ` Leonardo Barbosa [this message]
2014-02-12 18:33     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAMXWGTwau=kL8VN_3+veiYLgno-EfGTY-nwusAeLsRGnFLcS2g@mail.gmail.com' \
    --to=barbosa.leonardo@gmail.com \
    --cc=michel.barret@gmail.com \
    --cc=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).