LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   mp3 filename to xml shell script (https://www.linuxquestions.org/questions/linux-server-73/mp3-filename-to-xml-shell-script-713152/)

jason7 03-20-2009 12:06 PM

mp3 filename to xml shell script
 
Hi:

I have a collection of mp3s and I need to create 1 xml file per mp3.

I have:

recording1.mp3
recording2.mp3
etc

and I want to generate this kind of files.

recording1.xml
recording2.xml

and inside each xml file I need to add a url prefix and then the filename at the end.

So if my url is www.servername.com/mp3s

i need to have inside the xml something like

<file>www.servername.com/mp3s/recording1.mp3</file>

for the second file
<file>www.servername.com/mp3s/recording2.mp3</file>

Like that.

I have run into some issues so I would like to know from you guys.

Thanks in advance.

ps. if it works in subfolders too then you are my shell god.

unSpawn 03-21-2009 05:22 AM

Basically you're asking for somebody to write a script for you while neatly avoiding the question. I suggest you either properly ask or answer, your choice:
Quote:

Originally Posted by jason7 (Post 3482274)
I have run into some issues so I would like to know from you guys.

So what issues did you run into? What's the error? And where's your code?


All times are GMT -5. The time now is 08:42 PM.