From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9962 invoked from network); 18 Jan 2000 17:18:33 -0000 Received: from sunsite.auc.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 18 Jan 2000 17:18:33 -0000 Received: (qmail 19408 invoked by alias); 18 Jan 2000 17:18:15 -0000 Mailing-List: contact zsh-users-help@sunsite.auc.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 2891 Received: (qmail 19401 invoked from network); 18 Jan 2000 17:18:14 -0000 Date: Tue, 18 Jan 2000 18:18:12 +0100 From: Andy Spiegl To: zsh-users@sunsite.auc.dk Subject: Re: Renaming multiple files Message-ID: <20000118181812.A32114@br-online.de> Mail-Followup-To: zsh-users@sunsite.auc.dk References: <20000115105248.E868@ispi.net> <20000116041103.A1818@bozar.ihug.com.au> <20000116163112.A29827@picard.franken.de> <20000118164029.A27035@br-online.de> <20000118174116.A3683@picard.franken.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii User-Agent: Mutt/1.0i In-Reply-To: <20000118174116.A3683@picard.franken.de>; from jean-luc@picard.franken.de on Tue, Jan 18, 2000 at 05:41:16PM +0100 X-PGP-GPG-Keys: finger pgp.andy@spiegl.de OR mail -s "send pgp" auto@spiegl.de > 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@spiegl.de 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"