Re: mass rename help

2012-10-30 Thread Dazed_75
Thanks, Brian!  This one worked (though my '=' should have been a '-').  I
did not try the second option you gave.

On Mon, Oct 29, 2012 at 7:38 PM, Brian Cluff  wrote:

> Install the package mmv and then do:
>
> mmv "meetthegimp=mobile*.mp4" "meetthegimp#1-mobile.mp4"
>
> That should take care of it don't forget the quotes.  It needs them
> even if there aren't any spaces and such.
>
> Brian Cluff
>
>
> On 10/29/2012 06:21 PM, Dazed_75 wrote:
>
>> I have a bunch of files named "meetthegimp=mobile999.mp4" where 999 is
>> any 3 digit number.  I want to rename them all to be
>> "meetthegimp999-mobile.mp4".
>>
>> Can anyone give me a mv or rename command to do them all in one fell
>> swoop?  I could probably figure one out but it would take more time due
>> to having to make test cases and doing trial and error than just asking
>> you folks.  Thanks in advance.
>>
>> --
>> Dazed_75 a.k.a. Larry
>>
>> Please protect my address like I protect yours. When sending messages to
>> multiple recipients, always use the BCC: (Blind carbon copy) and not To:
>> or CC:. Remove all addresses from the message body before sending a
>> Forwarded message. This can prevent spy programs capturing addresses
>> from the recipient list and message body.
>>
>>
>> --**-
>> PLUG-discuss mailing list - 
>> plug-disc...@lists.plug.**phoenix.az.us
>> To subscribe, unsubscribe, or to change your mail settings:
>> http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discuss
>>
>>
> --**-
> PLUG-discuss mailing list - 
> plug-disc...@lists.plug.**phoenix.az.us
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.PLUG.phoenix.az.**us/mailman/listinfo/plug-**discuss
>



-- 
Dazed_75 a.k.a. Larry

Please protect my address like I protect yours. When sending messages to
multiple recipients, always use the BCC: (Blind carbon copy) and not To: or
CC:. Remove all addresses from the message body before sending a Forwarded
message. This can prevent spy programs capturing addresses from the
recipient list and message body.
---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss

Re: mass rename help

2012-10-29 Thread Brian Cluff

You can also do:

prename -v 's/meetthegimp=mobile([0-9]+).mp4/meetthegimp$1-mobile.mp4/' 
meetthegimp=mobile*.mp4


prename is also probably linked to by rename and comes with PERL, so it 
should already be on your system.


Brian Cluff

On 10/29/2012 06:21 PM, Dazed_75 wrote:

I have a bunch of files named "meetthegimp=mobile999.mp4" where 999 is
any 3 digit number.  I want to rename them all to be
"meetthegimp999-mobile.mp4".

Can anyone give me a mv or rename command to do them all in one fell
swoop?  I could probably figure one out but it would take more time due
to having to make test cases and doing trial and error than just asking
you folks.  Thanks in advance.

--
Dazed_75 a.k.a. Larry

Please protect my address like I protect yours. When sending messages to
multiple recipients, always use the BCC: (Blind carbon copy) and not To:
or CC:. Remove all addresses from the message body before sending a
Forwarded message. This can prevent spy programs capturing addresses
from the recipient list and message body.


---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss


Re: mass rename help

2012-10-29 Thread Brian Cluff

Install the package mmv and then do:

mmv "meetthegimp=mobile*.mp4" "meetthegimp#1-mobile.mp4"

That should take care of it don't forget the quotes.  It needs them 
even if there aren't any spaces and such.


Brian Cluff

On 10/29/2012 06:21 PM, Dazed_75 wrote:

I have a bunch of files named "meetthegimp=mobile999.mp4" where 999 is
any 3 digit number.  I want to rename them all to be
"meetthegimp999-mobile.mp4".

Can anyone give me a mv or rename command to do them all in one fell
swoop?  I could probably figure one out but it would take more time due
to having to make test cases and doing trial and error than just asking
you folks.  Thanks in advance.

--
Dazed_75 a.k.a. Larry

Please protect my address like I protect yours. When sending messages to
multiple recipients, always use the BCC: (Blind carbon copy) and not To:
or CC:. Remove all addresses from the message body before sending a
Forwarded message. This can prevent spy programs capturing addresses
from the recipient list and message body.


---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss



---
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss