[Israel.pm] multi move script

Moshe Kaminsky kaminsky at math.huji.ac.il
Sun Aug 22 22:03:06 PDT 2004


* Shlomi Bakish <shlomi at il.marvell.com> [22/08/04 20:28]:
> Does anyone have or know of a script that enables doing mv with 
> wildcards  in unix (similar to dos move) ?
> I'm sure someone already wrote it before, as this is a very useful 
> command, and I was very supprised to see
> that unix don't support what dos supported for years before.
> for example :
> mv    try_*.txt    work_*.txt

If you are using zsh, you can do

zmv 'try_(*).txt' 'work_$1.txt'

(You will have to autoload it first). Search for zmv in zshcontrib(1).

> thanks !
> _______________________________________________
> Perl mailing list
> Perl at perl.org.il
> http://perl.org.il/mailman/listinfo/perl

I love deadlines. I like the whooshing sound they make as they fly by. 
                                        -- Douglas Adams
    Moshe Kaminsky <kaminsky at math.huji.ac.il>
    Home: 08-9456841
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://perl.org.il/pipermail/perl/attachments/20040823/6f5c9769/attachment.pgp 

More information about the Perl mailing list