From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org)
	by finch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-131874-garchives=archives.gentoo.org@lists.gentoo.org>)
	id 1RW6cE-0000xw-98
	for garchives@archives.gentoo.org; Thu, 01 Dec 2011 13:23:54 +0000
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 6C84F21C083;
	Thu,  1 Dec 2011 13:23:38 +0000 (UTC)
Received: from mail-iy0-f181.google.com (mail-iy0-f181.google.com [209.85.210.181])
	by pigeon.gentoo.org (Postfix) with ESMTP id 74E1221C031
	for <gentoo-user@lists.gentoo.org>; Thu,  1 Dec 2011 13:22:31 +0000 (UTC)
Received: by iakk12 with SMTP id k12so2600361iak.40
        for <gentoo-user@lists.gentoo.org>; Thu, 01 Dec 2011 05:22:30 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=gamma;
        h=mime-version:in-reply-to:references:from:date:message-id:subject:to
         :content-type:content-transfer-encoding;
        bh=8kQVilegALTkUu+6Lm858kENLTx4ExFNmYliduuxIeI=;
        b=jjOHS/b4NpGGMRXAepmZsAGlJQwmwaXPTfVja0vogYTTG8PMqnxrd7EslXMvhZIsit
         n7aHR9b3rUTNRl/IW37hB5YVOCS+n+NurlP1RTJ7DlfRuv2JFsc/9eh4WaG13vf5tM1P
         tcM1DXNt+v+xVEEjU3k+aPd9hzSCcvdqTEGXg=
Received: by 10.42.162.130 with SMTP id y2mr8803812icx.26.1322745750928; Thu,
 01 Dec 2011 05:22:30 -0800 (PST)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.42.227.198 with HTTP; Thu, 1 Dec 2011 05:22:09 -0800 (PST)
In-Reply-To: <1322736912.841.0@numa-i>
References: <4ED6DD26.1070604@gmail.com> <911986BB-0850-4126-BB82-39C1A747EC2D@stellar.eclipse.co.uk>
 <1322736912.841.0@numa-i>
From: James Broadhead <jamesbroadhead@gmail.com>
Date: Thu, 1 Dec 2011 13:22:09 +0000
Message-ID: <CA+hid6FXrv-itfi7Sd-5eO0h+34E91Kh3-it9UjH16wGMLuZkA@mail.gmail.com>
Subject: Re: [gentoo-user] Changing names of LOTS of files, adding to them actually.
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
X-Archives-Salt: f0f29389-46ab-492a-9b1b-c12a66fa04dd
X-Archives-Hash: 978494d3120c4189d72821853945cee3

On 1 December 2011 10:55, Helmut Jarausch <jarausch@igpm.rwth-aachen.de> wr=
ote:
> On 12/01/2011 10:34:33 AM, Stroller wrote:
>>
>> On 1 December 2011, at 01:49, Dale wrote:
>> > ...
>> > I ran into a problem. =C2=A0I been downloading a lot of TV shows. =C2=
=A0I
>> forgot to put a sort of important part in the names. =C2=A0This 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"