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 ) id 1RVwML-00079K-OF for garchives@archives.gentoo.org; Thu, 01 Dec 2011 02:26:50 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DE68E21C152; Thu, 1 Dec 2011 02:25:45 +0000 (UTC) Received: from mail-gx0-f181.google.com (mail-gx0-f181.google.com [209.85.161.181]) by pigeon.gentoo.org (Postfix) with ESMTP id 2771921C13A for ; Thu, 1 Dec 2011 02:22:17 +0000 (UTC) Received: by ggnr1 with SMTP id r1so1699152ggn.40 for ; Wed, 30 Nov 2011 18:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:x-mailer:mime-version :content-type; bh=C/fwYTCt5ZKgWBvXk8QpP14qx81INjThlIvBncIS1io=; b=hw0seXDJgsAjN9J7yESgAneFOaGxaPRLQv1SRXrjwQ9duboK7yravAL3T9zxoHPTU2 8z+U/W/qKAzg5VYo53G/0iE1q7VpFbnhkXEJ7pDtTcg1ElIDW0jqU+8pvEVoGsLBDeYy CEhgsZp4SHP2Z94R72JZf2ReUVbLS9cVY8/2o= Received: by 10.236.116.1 with SMTP id f1mr8326551yhh.111.1322706137612; Wed, 30 Nov 2011 18:22:17 -0800 (PST) Received: from www.palm.com (ip18.83.dhcp-acs2.pdx.iinet.com. [198.145.83.18]) by mx.google.com with ESMTPS id i31sm10902131anm.19.2011.11.30.18.22.16 (version=SSLv3 cipher=OTHER); Wed, 30 Nov 2011 18:22:17 -0800 (PST) Message-ID: <4ed6e4d9.1f6a650a.3cde.6f73@mx.google.com> Date: Wed, 30 Nov 2011 18:22:18 -0800 From: To: Subject: Re: [gentoo-user] Changing names of LOTS of files, adding to them actually. In-Reply-To: <4ED6DD26.1070604@gmail.com> X-Mailer: Palm webOS Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="Alternative_=_Boundary_=_1322706137" X-Archives-Salt: 3a4108d2-c225-4ba0-a300-eff4028c72f9 X-Archives-Hash: 17ea6e170c38eb14e06f64d0443d981f --Alternative_=_Boundary_=_1322706137 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Take a look at rename, Dale.

Its usage syntax wasn't obvious to me a= t first but after using it a few times I got the hang of it.

Bill

--
Sent from my HP TouchPad which is really brainde= ad when trying not to toppost.

On Nov 30, 2011 5:50 PM, Dale <rdalek1967@gmail.com> wrote:
Greets,=0A
=0A
I ran into a problem. I been downloading a lot of= TV shows. I forgot =0A
to put a sort of important part in the names. = This is what I have with =0A
the full path:=0A
=0A
/data/Movies/TV= _Series/Person of Interest/Season 1, Episode 1 - Pilot.mp4=0A
=0A
Thi= s is what I need it to be:=0A
=0A
/data/Movies/TV_Series/Person of In= terest/Person of Interest - Season 1, =0A
Episode 1 - Pilot.mp4=0A
= =0A
Basically, I need to add the name of the show to the name of the fil= e. =0A
They will all be added to the front of the names. They also alm= ost all =0A
contain spaces, which means some fancy footwork with the \.= =0A
=0A
Is there a way to do this? I have room to copy them to anoth= er =0A
directory if needed. I would sort of actually prefer it that way= since =0A
if it messes up, I got the originals at least.=0A
=0A
S= orry I'm not real good at gawk, sed and all those things. I suspect =0Athose will be used tho. I am familiar with | and grep tho. ;-)=0A
=0A=
Thoughts?=0A
=0A
Dale=0A
=0A
:-) :-)=0A
=0A
-- =0AI am only responsible for what I said ... Not for what you understood or = how you interpreted my words!=0A
=0A
=0A --Alternative_=_Boundary_=_1322706137--