summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2007-10-18 13:51:52 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2007-10-18 13:51:52 +0000
commite219f140a575ef2211511f4e871022c26f3ea5d3 (patch)
tree706ec3733111ca36c2d086a09d780f791c7c9d6c
parent5128de28f272b5dd00e3dc99f9051ec19c97a311 (diff)
downloadzsh-e219f140a575ef2211511f4e871022c26f3ea5d3.tar.gz
zsh-e219f140a575ef2211511f4e871022c26f3ea5d3.tar.xz
zsh-e219f140a575ef2211511f4e871022c26f3ea5d3.zip
23986: zmv example for turning spaces into underscores
-rw-r--r--ChangeLog3
-rw-r--r--Doc/Zsh/contrib.yo7
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a5a18ba04..ac0f238d7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2007-10-18  Peter Stephenson  <pws@csr.com>
 
+	* 23986: Doc/Zsh/contrib.yo: zmv example for turning spaces
+	into underscores.
+
 	* 23978: configure.ac, Src/Modules/curses.c: use waddwstr() to
 	get zcurses -s to work with wide characters.
 
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index fb56353f2..3b7ad9b5a 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -2213,6 +2213,13 @@ passed down verbatim to the tt(cp), tt(ln) or tt(mv) command called to
 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.