Operating Systems > Linux and UNIX

Converting multiple files to mp3

<< < (5/6) > >>

beltorak0:
sure man.  glad it worked   .

Until Stryker posted his answer tho, i coudn't figure out how to get around the whole "for FILE in *" problem....  ty Stryker.

Stryker:

quote:Originally posted by beltorak:
sure man.  glad it worked       .

Until Stryker posted his answer tho, i coudn't figure out how to get around the whole "for FILE in *" problem....  ty Stryker.
--- End quote ---


no problem man, that's what i'm here for. it was strange too, this was posted just a few hours after i was just done learning some of the sed command and the while command.

and yes, i was thinking you were going from mp3 to wav, my mistake, but you get the idea.

[ January 31, 2003: Message edited by: Stryker ]

LorKorub:
Speaking of going from *.mp3 to *.wav, I decided to play:

for i in `find -name "*.mp3"`; do mpg123 -w "${i/.mp3}.wav" $i; done

This is a good thread. We need to archive this one.

Calum:
hey! that looks like a nice simple script! i found another script to do this but it didn't work  :(
i've been using xmms to do this job but will try that now you posted it. thanks!

LorKorub:
OK..now I have I question.

I have a shitload of *.mp3 files that are saved on CDROMs that I want to relocate to a single directory on my Linux drive. The files are sorted in their respective directories by band-names, and most of them have spaces (They are from my windoid days on Kazaa and Napster.) I cannot use the tr command, as they are on a read only filesystem, and I can't copy them to a temp directory, as bash gives me a bunch of error messages pertaining to the spaces in the files.  

Is there a workaround to this?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version