Thursday, January 22, 2015

Re: [LINUX_Newbies] Help with script and regex.

 

On 01/22/2015 01:07 AM, Cameron Simpson cs@zip.com.au [LINUX_Newbies] wrote:
 

On 21Jan2015 18:33, Emil Payne <ehspayne@yahoo.com> wrote:
>On 19/01/15 12:17 AM, Emil Payne ehspayne@yahoo.com [LINUX_Newbies] wrote:
>>I need (want) a script.
>>I screwed up renaming the sub-folders in my Pictures folder.
>[...]
>Got it.
>I took the original
>
>_12_«{_04_}«{_04_«{_2009_}}«{_04_«{_2009_}«{_2009_«{_PHOTOS_}}}«{_04_«{_2009_}«{_2009_«{_PHOTOS_}}«{_2009_«{_PHOTOS_}«{_PHOTOS_«{_Pictures_}}}}
>
>and replaced every phrase with a variable
>
>_[X1]_«{_[X2]_}«{_[X3]_«{_[X4]_}}«{_[X5]_«{_[X6]_}«{_[X7]_«{_[X8]_}}}«{_[X9]_«{_[X10]_}«{_[X11]_«{_[X12]_}}«{_[X13]_«{_[X14]_}«{_[X15]_«{_[X16]_}}}}
>
>then put it back together
>
>[X4]«[X2]«[X1]«[X8]«[X16]
>
>thus getting
>
>2009«04«12«PHOTOS«Pictures

Cool. Care to post your code?

Cheers,
Cameron Simpson <cs@zip.com.au>I


Actually I found a helper program called pyRenamer.
I did need the info here to help me figure out how to set up a complicated rename.

Emil


__._,_.___

Posted by: Emil Payne <ehspayne@yahoo.com>
Reply via web post Reply to sender Reply to group Start a New Topic Messages in this topic (18)
To unsubscribe from this list, please email LINUX_Newbies-unsubscribe@yahoogroups.com & you will be removed.

.

__,_._,___

No comments:

Post a Comment