From e219f140a575ef2211511f4e871022c26f3ea5d3 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 18 Oct 2007 13:51:52 +0000 Subject: 23986: zmv example for turning spaces into underscores --- Doc/Zsh/contrib.yo | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Doc') 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. -- cgit v1.3.1