From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9017 invoked from network); 19 Oct 2005 01:07:17 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 19 Oct 2005 01:07:17 -0000 Received: (qmail 44024 invoked from network); 19 Oct 2005 01:07:11 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 19 Oct 2005 01:07:11 -0000 Received: (qmail 29745 invoked by alias); 19 Oct 2005 01:07:03 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9519 Received: (qmail 29731 invoked from network); 19 Oct 2005 01:07:03 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 19 Oct 2005 01:07:03 -0000 Received: (qmail 42831 invoked from network); 19 Oct 2005 01:07:03 -0000 Received: from sccimhc92.asp.att.net (63.240.76.166) by a.mx.sunsite.dk with SMTP; 19 Oct 2005 01:07:02 -0000 Received: from unicorn.millertracy.com (12-221-97-207.client.insightbb.com[12.221.97.207]) by sccimhc92.asp.att.net (sccimhc92) with ESMTP id <20051019010701i920029u5pe>; Wed, 19 Oct 2005 01:07:01 +0000 From: Dan Bullok To: Zsh Users Subject: Re: Trouble with zmv and extended globs Date: Tue, 18 Oct 2005 20:07:00 -0500 User-Agent: KMail/1.8.1 References: <200510181927.25831.dan.zsh@bullok.com> In-Reply-To: <200510181927.25831.dan.zsh@bullok.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200510182007.00512.dan.zsh@bullok.com> X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00 autolearn=ham version=3.0.4 The typo gremlin got me. See corrections below. On Tuesday 18 October 2005 19:27, Dan Bullok wrote: > I'm having some trouble with zmv. > Suppose I have a bunch of python scripts in a directory, and none of them > end in .py. I want to give them all a proper extension, so I try: > zmv -n '(*)(#qe,file ${REPLY}|grep "python script",)' '$1.py' > This works as I expected it to. > However, if I have a bunch of python scripts in several subdirectories of > varying depths, I try: > zmv -n '(**/con*)(#qe,file ${REPLY}|grep "python script",)' '$1.py' zmv -n '(**/*)(#qe,file ${REPLY}|grep "python script",)' '$1.py' > which gives me the following error: > zmv:238: bad pattern: (*/*)(#qe,file ${REPLY}|grep python,) zmv:238: bad pattern: (**/*)(#qe,file ${REPLY}|grep python,) > > I've also tried: > zmv -n '(*/*(#qe,file ${REPLY}|grep python,))' '$1.py' zmv -n '(**/*(#qe,file ${REPLY}|grep python,))' '$1.py'