From: Dan Bullok <dan.zsh@bullok.com>
To: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Trouble with zmv and extended globs
Date: Tue, 18 Oct 2005 20:07:00 -0500 [thread overview]
Message-ID: <200510182007.00512.dan.zsh@bullok.com> (raw)
In-Reply-To: <200510181927.25831.dan.zsh@bullok.com>
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'
next prev parent reply other threads:[~2005-10-19 1:07 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-10-19 0:27 Dan Bullok
2005-10-19 1:00 ` Philippe Troin
2005-10-19 1:07 ` Dan Bullok [this message]
2005-10-19 6:25 ` Bart Schaefer
2005-10-19 8:14 ` Peter Stephenson
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=200510182007.00512.dan.zsh@bullok.com \
--to=dan.zsh@bullok.com \
--cc=zsh-users@sunsite.dk \
/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).