There are many ways to do this, but the easiest way I think is to do:

     find /path/to/mp3s -type f -name "*.mp3" > playlist.txt

You will get a list of files (no directories) that end in ".mp3"
complete with path info.  This command will also rescind down any
subdirectory in the top directory you specify but will only list the
files found, again, no directories.  "man find" if you need more
details.

Regards,

     Woody

On Sat, 2001-10-20 at 09:37, Mike & Tracy Holt wrote:
> Hello experts!
>     I'm writing again about realserver; this time it's about how to 
> stream a playlist.  I've been looking around at different formats that 
> real server handles (.ram, .m3u, .smi) and the common thread that I've 
> noticed is that each of these has to have the FULL path to each mp3 
> listed that you want to stream.  Now this is for a home network where I 
> would like to be able to sit at any of the computers, pull up real 
> player, pick a playlist and start listening; however, I have over 500 
> mp3's on my local server - that's a lot of hand editing.
> 
> I can ls the directory and output to the file I need, but getting the 
> rest of the path added to each line has got me stumped.  Is there a 
> program that can handle this task?  I've been looking at sed and awk, 
> but I'm a little bit confused as to how to use them.
> 
> TIA, Mike 

-- 
     Woody ([EMAIL PROTECTED])

---------------------------------------------------------------
Gatewood Green         Web Developer
http://www.linux.org/  The first stop for Linux info on the Net
Email:                 [EMAIL PROTECTED]
---------------------------------------------------------------
All opinions expressed by me are my own and not necessarily
endorsed by Linux Online, Inc. or Linux Headquarters, Inc.


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to