On 1 December 2011 10:55, Helmut Jarausch <jarau...@igpm.rwth-aachen.de> wrote: > On 12/01/2011 10:34:33 AM, Stroller wrote: >> >> On 1 December 2011, at 01:49, Dale wrote: >> > ... >> > I ran into a problem. I been downloading a lot of TV shows. I >> forgot to put a sort of important part in the names. This is what I >> have with the full path: >> > >> > /data/Movies/TV_Series/Person of Interest/Season 1, Episode 1 - >> Pilot.mp4 >> > >> > This is what I need it to be: >> > >> > /data/Movies/TV_Series/Person of Interest/Person of Interest - >> Season 1, Episode 1 - Pilot.mp4 >> >
I'm surprised that no one mentioned 'mmv', which I switched to from rename. It has nice simple syntax, which is good for the _one thing that it does_, which makes it nice and unixy. All I've ever needed (I use python for anything more complex) ? Single character match * String match until next token #1, #2 , #3 for first match, second match etc. cd /data/Movies/TV_Series/ # for all series mmv "*/*" "#1/#1-#2"