Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
06-29-2006, 07:27 PM
|
#1
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
|
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%"> </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
|
|
|
06-29-2006, 09:06 PM
|
#2
|
Senior Member
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468
Rep:
|
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
|
|
|
06-30-2006, 08:14 AM
|
#3
|
Senior Member
Registered: Sep 2004
Location: Philadelphia, PA
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Original Poster
Rep:
|
That'll work-thanx!
|
|
|
All times are GMT -5. The time now is 09:13 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|