LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-29-2006, 06:27 PM   #1
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Rep: Reputation: 47
making a playlist file from a html source file


I'm running an mp3 server on my home network using my old cds and gnump3d. I want to make a playlist file out of a html source file that was produced using a script to automate this. The file is very redundant and very long...I need to strip out everything that is an mp3 file location from this:

<tr><td width="10%">&nbsp;</td><td><a href="/Music/7_Ball_Collection/gas_collection_20/10%20Fingers%20Counting%20-%2017%20-%20Superfluit.mp3.m3u">Superfluit- 10 Fingers Counting [ 10 Fingers Counting - 17 - Superfluit - 05:13 / 4.7Mb ] <font color="red"><b>New</b></font></a></td><td align="right">[<a href="/info/Music/7_Ball_Collection/gas_collection_20/10%20Fingers%20Counting%20-%2017%20-%20Superfluit.mp3">Info</a>] [<a href="/Music/7_Ball_Collection/gas_collection_20/10%20Fingers%20Counting%20-%2017%20-%20Superfluit.mp3">Download</a>]</td></tr>
.........goes on and on and on


I've done this in Win with a batch file in dos-how would I do this in Linux?

I need this:

/Music/7_Ball_Collection/gas_collection_20/10%20Fingers%20Counting%20-%2017%20-%20Superfluit.mp3
 
Old 06-29-2006, 08:06 PM   #2
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
Just make a new list instead:

find ~/ -name "*.mp3" -print > playlist.txt

This will find all .mp3 in your home directory and all subs. you can change "~/" to be more specific if you like...

KC
 
Old 06-30-2006, 07:14 AM   #3
linuxhippy
Senior Member
 
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207

Original Poster
Rep: Reputation: 47
That'll work-thanx!
 
  


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
Problems with making file from source code justinmc Linux - Software 5 01-09-2005 09:44 PM
convert a html file in a graphics file (for Oo) shengchieh Linux - Software 2 09-09-2004 04:41 PM
Making VSAM file from a flat file in AIX Raghothaman AIX 2 08-25-2004 04:55 PM
A Program/script making a html playlist? Trinity22 Linux - Software 4 04-13-2004 09:29 PM
xmms playlist and my file info tobz Linux - Software 4 11-01-2003 09:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:36 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration