Renaming more than one mp3 files - Linux
This is a discussion on Renaming more than one mp3 files - Linux ; Hi
I have just recorded a book on a mp3 format. There are about 80
Chapters... Is there a way to names all 80 chapters, without having to
type each and every one of them in id tax?
I have ...
-
Renaming more than one mp3 files
Hi
I have just recorded a book on a mp3 format. There are about 80
Chapters... Is there a way to names all 80 chapters, without having to
type each and every one of them in id tax?
I have hoping that I copy copy 80 chapter name in a .txt file and some
sort of program reads them and add to to my 01 - 80.mp3 files.
Is it possible?
Oh yeah, I rather have a linux apps -- this is my college computer --
I mostly use Linux at home -- my 2nd OS (don't laugh!) is Windows ME.
It's b/c I have been using Linux since then..
-
Re: Renaming more than one mp3 files
alishadevochka@gmail.com wrote:
> I have just recorded a book on a mp3 format. There are about 80
> Chapters... Is there a way to names all 80 chapters, without having to
> type each and every one of them in id tax?
You could try the Bash scripting forums ..
http://www.linuxforums.org/forum/lin...ing-files.html
-
Re: Renaming more than one mp3 files
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
alishadevochka@gmail.com wrote:
> I have just recorded a book on a mp3 format. There are about 80
> Chapters... Is there a way to names all 80 chapters, without having to
> type each and every one of them in id tax?
>
> I have hoping that I copy copy 80 chapter name in a .txt file and some
> sort of program reads them and add to to my 01 - 80.mp3 files.
>
> Is it possible?
I'm not entirely sure I understand you correctly. Do you have files
named 01.mp3, 02.mp3, etc., and you want them renamed based on the
content of a file? Well, assuming you have 80 files, and the names in a
file called names.txt (with one filename per line), then something like
this will create the set of commands to rename them:
paste <(seq -w 1 80) names.txt | sed -e 's:^:mv -i :' -e 's:\t:.mp3 ":' -e 's:$:.mp3":'
Once you verify that it behaves correctly, you can just pipe it to
'bash' to execute the moved. Now, if you also want the ID3 tags
updated, then it gets more complicated. I realize that the above line
may look a bit like line noise, but that's just the way sed is
sometimes ... :-)
> Oh yeah, I rather have a linux apps -- this is my college computer --
> I mostly use Linux at home -- my 2nd OS (don't laugh!) is Windows ME.
> It's b/c I have been using Linux since then..
I'm surprised you let the ME install live (and that it hasn't died on
you).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFHCSnsd1ZThqotgfgRAn5cAJ0URoywHCPoAtpKVoWVxV NqrFTH+gCgmld0
enexHMznn7mHxwUth9KY5Dg=
=DU3r
-----END PGP SIGNATURE-----
--
PeKaJe
"The National Association of Theater Concessionaires reported
that in 1986, 60% of all candy sold in movie theaters was sold
to Roger Ebert." -- D. Letterman
-
Re: Renaming more than one mp3 files
On Sat, 06 Oct 2007 22:20:57 -0700, alishadevochka@gmail.com wrote:
>Hi
>I have just recorded a book on a mp3 format. There are about 80
>Chapters... Is there a way to names all 80 chapters, without having to
>type each and every one of them in id tax?
rename command
Syntax is 'rename wildcard"
For example
mkdir 'chapter subdirectory'
rename 'some stuff disc ' 'chapter subdirectory/Disc_' *.mp3
will move everything with 'some stuff disc # track #' to the new directory
and a name of "Disc_# track #"