about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Ackersviller <packersv@users.sourceforge.net>2007-11-26 00:58:24 +0000
committerPaul Ackersviller <packersv@users.sourceforge.net>2007-11-26 00:58:24 +0000
commitc84618416b0b25d8e6f628c3fac60cb0f654e997 (patch)
tree69009c99334f14c4f26fe36c041e84c1fd863891
parentb1fa164b2971625e6a597dcb214025da9d3557d6 (diff)
downloadzsh-c84618416b0b25d8e6f628c3fac60cb0f654e997.tar.gz
zsh-c84618416b0b25d8e6f628c3fac60cb0f654e997.tar.xz
zsh-c84618416b0b25d8e6f628c3fac60cb0f654e997.zip
Merge of 23986: zmv example for turning spaces into underscores.
-rw-r--r--Doc/Zsh/contrib.yo7
1 files changed, 7 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index 68a922aca..82d97768c 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -1884,6 +1884,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.