zsh-users
 help / color / mirror / code / Atom feed
* Trouble with zmv and extended globs
@ 2005-10-19  0:27 Dan Bullok
  2005-10-19  1:00 ` Philippe Troin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Dan Bullok @ 2005-10-19  0:27 UTC (permalink / raw)
  To: Zsh Users

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'
which gives me the following error:
	zmv:238: bad pattern: (*/*)(#qe,file ${REPLY}|grep python,)

I've also tried:
	zmv -n '(*/*(#qe,file ${REPLY}|grep python,))' '$1.py'
which doesn't work either.

I'm sure I'm missing something, because it seems like it should be possible.  
Can someone help me with this, please?  I've been trying various permutations 
for over an hour, and I'm REALLY stuck.

-Dan


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-10-19  8:14 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-19  0:27 Trouble with zmv and extended globs Dan Bullok
2005-10-19  1:00 ` Philippe Troin
2005-10-19  1:07 ` Dan Bullok
2005-10-19  6:25 ` Bart Schaefer
2005-10-19  8:14   ` Peter Stephenson

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).