about summary refs log tree commit diff
path: root/Doc
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 /Doc
parent5128de28f272b5dd00e3dc99f9051ec19c97a311 (diff)
downloadzsh-e219f140a575ef2211511f4e871022c26f3ea5d3.tar.gz
zsh-e219f140a575ef2211511f4e871022c26f3ea5d3.tar.xz
zsh-e219f140a575ef2211511f4e871022c26f3ea5d3.zip
23986: zmv example for turning spaces into underscores
Diffstat (limited to 'Doc')
-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 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.