From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 461 invoked from network); 12 Dec 2005 16:21:42 -0000 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00, FORGED_RCVD_HELO autolearn=ham version=3.1.0 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 12 Dec 2005 16:21:42 -0000 Received: (qmail 80544 invoked from network); 12 Dec 2005 16:21:35 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 12 Dec 2005 16:21:35 -0000 Received: (qmail 1207 invoked by alias); 12 Dec 2005 16:21:28 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9785 Received: (qmail 1197 invoked from network); 12 Dec 2005 16:21:27 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 12 Dec 2005 16:21:27 -0000 Received: (qmail 79553 invoked from network); 12 Dec 2005 16:21:27 -0000 Received: from vms042pub.verizon.net (206.46.252.42) by a.mx.sunsite.dk with SMTP; 12 Dec 2005 16:21:26 -0000 Received: from candle.brasslantern.com ([71.116.81.225]) by vms042.mailsrvcs.net (Sun Java System Messaging Server 6.2-4.02 (built Sep 9 2005)) with ESMTPA id <0IRE00L2083CMG3O@vms042.mailsrvcs.net> for zsh-users@sunsite.dk; Mon, 12 Dec 2005 10:21:13 -0600 (CST) Received: from candle.brasslantern.com (IDENT:schaefer@localhost [127.0.0.1]) by candle.brasslantern.com (8.12.11/8.12.11) with ESMTP id jBCGLCg9021493; Mon, 12 Dec 2005 08:21:12 -0800 Received: (from schaefer@localhost) by candle.brasslantern.com (8.12.11/8.12.11/Submit) id jBCGLBgP021492; Mon, 12 Dec 2005 08:21:12 -0800 Date: Mon, 12 Dec 2005 16:21:11 +0000 From: Bart Schaefer Subject: Re: Adding Text to Each Match In-reply-to: <20051212153946.GA2836@namib.cs.utk.edu> To: Chris Johnson , zsh-users@sunsite.dk Message-id: <1051212162111.ZM21491@candle.brasslantern.com> MIME-version: 1.0 X-Mailer: Z-Mail (5.0.0 30July97) Content-type: text/plain; charset=us-ascii References: <20051212153946.GA2836@namib.cs.utk.edu> Comments: In reply to Chris Johnson "Adding Text to Each Match" (Dec 12, 10:39am) On Dec 12, 10:39am, Chris Johnson wrote: } } Is there a non-loop way to replicate text for each filename matching a } pattern? [...] } I think there's been some talk of this, but I don't know what to search } for in the archives. Try searching for "mutt". The thread is "globbing with interposition" from back in April, and the short-and-sweet answer is that mutt doesn't care whether there's a space between the -a and the file name, so you can run them together as -afile1 -afile2 etc., which means you can use brace expansion. See zsh-users/8707.