1 |
On 1 December 2011 10:55, Helmut Jarausch <jarausch@××××××××××××××××.de> wrote: |
2 |
> On 12/01/2011 10:34:33 AM, Stroller wrote: |
3 |
>> |
4 |
>> On 1 December 2011, at 01:49, Dale wrote: |
5 |
>> > ... |
6 |
>> > I ran into a problem. I been downloading a lot of TV shows. I |
7 |
>> forgot to put a sort of important part in the names. This is what I |
8 |
>> have with the full path: |
9 |
>> > |
10 |
>> > /data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - |
11 |
>> Pilot.mp4 |
12 |
>> > |
13 |
>> > This is what I need it to be: |
14 |
>> > |
15 |
>> > /data/Movies/TV_Series/Person of Interest/Person of Interest - |
16 |
>> Season 1, Episode 1 - Pilot.mp4 |
17 |
>> > |
18 |
|
19 |
I'm surprised that no one mentioned 'mmv', which I switched to from rename. |
20 |
It has nice simple syntax, which is good for the _one thing that it |
21 |
does_, which makes it nice and unixy. |
22 |
All I've ever needed (I use python for anything more complex) |
23 |
? Single character match |
24 |
* String match until next token |
25 |
#1, #2 , #3 for first match, second match etc. |
26 |
|
27 |
cd /data/Movies/TV_Series/ |
28 |
# for all series |
29 |
mmv "*/*" "#1/#1-#2" |