[Date Prev][Date
Next][Thread Prev][Thread Next][Date
Index][Thread Index]
Re: Tag & Rename question....
Thanks Ant, - I can certainly put perl on there....
Will give it a go later....
:-)
Paul G.
>From: Ant <ant@xxxxxxx>
>Reply-To: ukha_d@xxxxxxx
>To: ukha_d@xxxxxxx
>Subject: Re: [ukha_d] Tag & Rename question....
>Date: Wed, 21 May 2003 01:02:57 +0100
>
>On Tuesday 20 May 2003 21:07, Paul Gordon wrote:
> > Hoping someone whose used T&R a bit can help me....
> >
> > I have a sizeable chunk of a library where the format is:
> >
> > <Artist>\<artist - album> i.e there is a top
level folder for the
> > artist, and underneath that is a folder per album, *but* the
artist name
> > also appears as part of the album folder name....
> >
> > I want to change it so that the folder name exactly matches the
album
>name,
> > i.e. like the following:
> > <Artist>\<album>
>
>Got perl? Do this:
>
>perl -e 'for(`find . -type d`){chomp;$o=$_;if(s/.*-\s*//){rename $o,$_
>unless
>-d $_;};}'
>
>It'll process a whole directory tree, and change <artist - album>
to
><album>
>regardless of the number of spaces in there. If <album> is
non-unique for a
>particular <Artist> directory, it'll leave it alone.
>
>cheers
>
>ant
>--
> /\/\
> www.ant.org ('') www.ant.org
> ()
> Megawatt Winged Avenger
>
>
>
>** UKHA2004 BE THERE! ** - start planning now.
>
>http://www.automatedhome.co.uk
>Post message: ukha_d@xxxxxxx
>Subscribe: ukha_d-subscribe@xxxxxxx
>Unsubscribe: ukha_d-unsubscribe@xxxxxxx
>List owner: ukha_d-owner@xxxxxxx
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
_________________________________________________________________
Stay in touch with absent friends - get MSN Messenger
http://www.msn.co.uk/messenger
Home |
Main Index |
Thread Index
|