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 --- ChangeLog | 3 +++ Doc/Zsh/contrib.yo | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/ChangeLog b/ChangeLog index a5a18ba04..ac0f238d7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-10-18 Peter Stephenson + * 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. -- cgit 1.4.1