Re: [expert] Request to include mmv (perhaps OT)

2000-01-13 Thread John Aldrich

On Thu, 13 Jan 2000, you wrote:
> On gio, 13 gen 2000, John Aldrich wrote:
> >On Thu, 13 Jan 2000, you wrote:
> >> I've just discovere mmv (GREAT) and noted that it is not present in the RPM
> >> binary tree. Is it possible for Mandrake to add it please? It's very little and
> >> useful too!
> >> 
> >What is this? I've never heard of mmv... just curious. :-)
> > John
> 
> in dos you can do:
> 
>  ren file*.txt file*.asc
> 
> in unix this is not as simple, until now!
> mmv is for this, infact now you can do it with
> 
>  mmv "file*.txt" "file#1.asc"
> 
> it works even with multiple wildcards like
> 
>  mmv "file*.*" "file#1.#2"
> 
> black magic! :-) 
>
Kewlness. :-) That WOULD be nice. Then, just alias "mv" to
"mmv." ;-)
John



Re: [expert] Request to include mmv (perhaps OT)

2000-01-13 Thread Marco Ciampa

On gio, 13 gen 2000, John Aldrich wrote:
>On Thu, 13 Jan 2000, you wrote:
>> I've just discovere mmv (GREAT) and noted that it is not present in the RPM
>> binary tree. Is it possible for Mandrake to add it please? It's very little and
>> useful too!
>> 
>What is this? I've never heard of mmv... just curious. :-)
>   John

in dos you can do:

 ren file*.txt file*.asc

in unix this is not as simple, until now!
mmv is for this, infact now you can do it with

 mmv "file*.txt" "file#1.asc"

it works even with multiple wildcards like

 mmv "file*.*" "file#1.#2"

black magic! :-) 

man mmv

MMV(1) MMV(1)

NAME
mmv  -  move/copy/append/link  multiple  files by wildcard
patterns

SYNOPSIS
mmv [-m|x|r|c|o|a|l|s] [-h] [-d|p] [-g|t] [-v|n] [from to]

DESCRIPTION
Mmv  moves  (or  copies,  appends, or links, as specified)
each source file matching a from  pattern  to  the  target
name specified by the to pattern.  This multiple action is
performed safely, i.e. without any unexpected deletion  of
files  due  to  collisions  of  target names with existing
filenames or with other target names.  Furthermore, before
doing  anything,  mmv  attempts  to detect any errors that
would result from the entire set of actions specified  and
gives the user the choice of either proceeding by avoiding
the offending parts or aborting.

[..]

AUTHOR
Vladimir Lanin
[EMAIL PROTECTED]  

bye


-- 
Marco Ciampa



RE: [expert] Request to include mmv (perhaps OT)

2000-01-13 Thread Bois, Mathieu

mmv is 'multiple move'

It's like mv, but with more usefull features.

I have never used it (I rather do scripts) but I think it can do things like

mmv filename*.png otherfilename*.png
(maybe the syntax is not correct)

This will rename filename01.png into otherfilename01.png, filename02.png
into otherfilename02.png, filename03.png into otherfilename03.png and so
on...

You can do in a single command line what would require a loop with more than
4 commands

Mathieu

> -Original Message-
> From: Andrew Post [mailto:[EMAIL PROTECTED]]
> Sent: 13 January 2000 15:32
> To: [EMAIL PROTECTED]
> Subject: Re: [expert] Request to include mmv (perhaps OT)
> 
> 
> What is mmv?
> 
> Thanks,
> 
> Andrew
> 
> Marco Ciampa wrote:
> > 
> > I've just discovere mmv (GREAT) and noted that it is not 
> present in the RPM
> > binary tree. Is it possible for Mandrake to add it please? 
> It's very little and
> > useful too!
> > 
> > bye
> > 
> > --
> > Marco Ciampa
> 



Re: [expert] Request to include mmv (perhaps OT)

2000-01-13 Thread John Aldrich

On Thu, 13 Jan 2000, you wrote:
> I've just discovere mmv (GREAT) and noted that it is not present in the RPM
> binary tree. Is it possible for Mandrake to add it please? It's very little and
> useful too!
> 
What is this? I've never heard of mmv... just curious. :-)
John



Re: [expert] Request to include mmv (perhaps OT)

2000-01-13 Thread Andrew Post

What is mmv?

Thanks,

Andrew

Marco Ciampa wrote:
> 
> I've just discovere mmv (GREAT) and noted that it is not present in the RPM
> binary tree. Is it possible for Mandrake to add it please? It's very little and
> useful too!
> 
> bye
> 
> --
> Marco Ciampa