Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: zmv example



I use this all the time, so it's probably worth adding to the
documentation.

Index: Doc/Zsh/contrib.yo
===================================================================
RCS file: /cvsroot/zsh/zsh/Doc/Zsh/contrib.yo,v
retrieving revision 1.71
diff -u -r1.71 contrib.yo
--- Doc/Zsh/contrib.yo	14 Aug 2007 17:21:08 -0000	1.71
+++ Doc/Zsh/contrib.yo	18 Oct 2007 13:18:25 -0000
@@ -2213,6 +2213,13 @@
 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.


-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author