Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Renaming multiple files
- X-seq: zsh-users 2891
- From: Andy Spiegl <zsh.Andy@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: Renaming multiple files
- Date: Tue, 18 Jan 2000 18:18:12 +0100
- In-reply-to: <20000118174116.A3683@xxxxxxxxxxxxxxxxx>; from jean-luc@xxxxxxxxxxxxxxxxx on Tue, Jan 18, 2000 at 05:41:16PM +0100
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <20000115105248.E868@xxxxxxxx> <20000116041103.A1818@xxxxxxxxxxxxxxxxx> <20000116163112.A29827@xxxxxxxxxxxxxxxxx> <20000118164029.A27035@xxxxxxxxxxxx> <20000118174116.A3683@xxxxxxxxxxxxxxxxx>
> 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