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

Re: Renaming multiple files



> How do you do
> for i in **/*.php(I) ; do mv $i ${i:r}.phtml ; done
> with mmv?
I'm not sure (haven't looked at the man page for a long time), but I
suppose you can't do it.  Anyway: zsh is always better. :-)

> 553 jean-luc@picard (ttypts/12) ~/test/zsh> zmodload files
What does that command mean?

> 554 jean-luc@picard (ttypts/12) ~/test/zsh> time (for i in *.php ;
> do mv $i ${i:r}.phtml ; done )
> ( for i in *.php; do; mv $i ${i:r}.phtml; done )
> 0,09s user 0,61s system 94% cpu 0,739 total
Wow, this one command really speeds it up that much.

Bye,
 Andy.

-- 
 E-Mail: Andy@xxxxxxxxx     URL: http://andy.spiegl.de
 PGP/GPG: see headers
                                o      _     _         _
  --------- __o       __o      /\_   _ \\o  (_)\__/o  (_)
  ------- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/
  ------ (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 USER, n.:  The word computer professionals use when they mean "idiot."
               -- Dave Barry, "Claw Your Way to the Top"



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