zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: zmv example
@ 2007-10-18 13:30 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2007-10-18 13:30 UTC (permalink / raw)
  To: Zsh hackers list

I use this all the time, so it's probably worth adding to the
documentation.

Index: Doc/Zsh/contrib.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/contrib.yo,v
retrieving revision 1.71
diff -u -r1.71 contrib.yo
--- Doc/Zsh/contrib.yo	14 Aug 2007 17:21:08 -0000	1.71
+++ Doc/Zsh/contrib.yo	18 Oct 2007 13:18:25 -0000
@@ -2213,6 +2213,13 @@
 perform the work.  It should probably begin with a `tt(-)'.)
 endsitem()
 
+Further examples:
+
+example(zmv -v '(* *)' '${1// /_}')
+
+For any file in the current directory with at least one space in the name,
+replace every space by an underscore and display the commands executed.
+
 For more complete examples and other implementation details, see the
 tt(zmv) source file, usually located in one of the directories named in
 your tt(fpath), or in tt(Functions/Misc/zmv) in the zsh distribution.


-- 
Peter Stephenson <pws@csr.com>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-10-18 13:39 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-18 13:30 PATCH: zmv example 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).