[xubuntu-users] Renaming mp3 files from meta data

Andy Proctor xubuntu.list at gpshelp.co.uk
Sun Jan 11 20:58:03 UTC 2015


On 11/01/15 19:55, Kiyotaka Nemoto wrote:
> Hi Andy,
>
> I wrote a tiny batch script which does what you want.
> The script depends on libimage-exiftool-perl package, so please
> install the package beforehand.
> It's in universe repository, so installation is pretty simple.
>
> $ sudo apt-get install libimage-exiftool-perl
>
> After that, please place the attached script (meta2mp3.sh) somewhere in your PC.
> Then make it executable by
>
> $ chmod +x meta2mp3.sh
>
> Please look inside the script.
> Around line 42, you will see
>
>   newname=`echo "${Track}-${Title}-${Artist}-${Album}.mp3"`
>
> As you guess, if you change the order of variables, you will get any
> filename you want.
>
> Usage of this script is simple.
>
> $ meta2mp3.sh *.mp3
>
> will rename all of mp3 files.
>
> Please make backup copy of your salvaged mp3 files first and give it a
> try if you like.
>
> My circumstance is Xubuntu 14.04 and it worked well in my circumstance.
>
> Hope this helps,
>
> Kiyotaka
>
> <snip>
>>
>>
Thanks Kiyotaka,

Although easytag did the job I have learned something from reading your 
script and will try to automate other activities like this, myself. Very 
useful thanks

Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/xubuntu-users/attachments/20150111/f650c778/attachment.html>


More information about the xubuntu-users mailing list