mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-02-24 11:51:19 +01:00
23986: zmv example for turning spaces into underscores
This commit is contained in:
parent
5128de28f2
commit
e219f140a5
2 changed files with 10 additions and 0 deletions
|
@ -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.
|
||||
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue