From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16393 invoked by alias); 12 Feb 2014 18:34:02 -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: 18429 Received: (qmail 13834 invoked from network); 12 Feb 2014 18:33:56 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140212103335.ZM25647@torch.brasslantern.com> Date: Wed, 12 Feb 2014 10:33:35 -0800 In-reply-to: Comments: In reply to Michel "Re: executing commands in directories containing specific files" (Feb 12, 9:33am) References: <140211211309.ZM24838@torch.brasslantern.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: executing commands in directories containing specific files MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Feb 12, 9:33am, Michel wrote: } Subject: Re: executing commands in directories containing specific files } } > 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(.) ) Leonardo had a "find" command in his original question, so I just copied it, in case he already had a working script that was producing the list of .tex files and he only needed a new part to change the suffix.