LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 03-20-2009, 12:06 PM   #1
jason7
LQ Newbie
 
Registered: Aug 2008
Posts: 10

Rep: Reputation: 0
Smile 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.
 
Old 03-21-2009, 05:22 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,310
Blog Entries: 54

Rep: Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860Reputation: 2860
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 View Post
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?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script to read part of filename fatgoth Linux - Newbie 10 02-26-2012 08:21 AM
Shell script for changing filename case Steve W Linux - Software 8 10-17-2008 03:15 AM
Need assistance with shell script to pull MP3 file Cpare Linux - Newbie 5 06-28-2008 08:53 PM
shell script:filename containing space ! Dr_Death_UAE Programming 3 12-16-2006 06:46 PM
How to access mp3 bitrate info in a shell script? ppk007 Linux - Software 3 08-04-2006 05:07 PM


All times are GMT -5. The time now is 11:40 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration