zsh-users
 help / color / mirror / code / Atom feed
From: Andy Spiegl <zsh.Andy@spiegl.de>
To: zsh-users@sunsite.auc.dk
Subject: Re: Renaming multiple files
Date: Tue, 18 Jan 2000 16:40:29 +0100	[thread overview]
Message-ID: <20000118164029.A27035@br-online.de> (raw)
In-Reply-To: <20000116163112.A29827@picard.franken.de>; from jean-luc@picard.franken.de on Sun, Jan 16, 2000 at 04:31:12PM +0100

> for i in *.phtml ; do mv $i ${i:r}.php ; done
Nifty.  But do you guys know mmv?
It's as easy as this:
 mmv '*.phtml' '#1.php'

> Well, works with zsh - and is of course shorter, doesn't need basename
> etc... :-)
dito. :-)

> jean-luc@picard (ttypts/5) ~/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 )
>  3,22s user 5,04s system 99% cpu 8,328 total

eule:~/tmp>time mmv '*.phtml' '#1.php'
 0,03s user 0,46s system 100% cpu 0,487 total

What is 3,22 divided by 0,03?  :-)

Bye,
 Andy.

-- 
 E-Mail: Andy@spiegl.de     URL: http://andy.spiegl.de
 PGP/GPG: see headers
                                o      _     _         _
  --------- __o       __o      /\_   _ \\o  (_)\__/o  (_)
  ------- _`\<,_    _`\<,_    _>(_) (_)/<_    \_| \   _|/' \/
  ------ (_)/ (_)  (_)/ (_)  (_)        (_)   (_)    (_)'  _\o_
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 Harrisberger's Fourth Law of the Lab:
         Experience is directly proportional to
         the amount of equipment ruined.


  reply	other threads:[~2000-01-18 15:40 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-15 16:52 Andrei Zmievski
2000-01-15 17:11 ` Andre Pang
2000-01-15 17:11   ` Andrei Zmievski
2000-01-16 15:31   ` Thomas Köhler
2000-01-18 15:40     ` Andy Spiegl [this message]
2000-01-18 15:41       ` Andrei Zmievski
2000-01-18 16:39         ` Renaming multiple files (OT) Andy Spiegl
2000-01-18 16:41       ` Renaming multiple files Thomas Köhler
2000-01-18 17:18         ` Andy Spiegl
2000-01-18 17:38           ` Zefram
2000-01-18 20:00         ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000118164029.A27035@br-online.de \
    --to=zsh.andy@spiegl.de \
    --cc=zsh-users@sunsite.auc.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).