thanks for the help guys. The xargs worked perfectly. On Tuesday 26 November 2002 12:18 am, David Geoffrion wrote: > The best I can come up with is to throw them all on the command line with a > program like xargs, but it's a bit tricky because mp3's often have spaces > in the names which makes madplay treat each part of the name as a separate > file which will obviously not make it make pretty sounds. > > I whipped this line up using [g]awk to put quotation marks around each > filename, though, before passing them into xargs, and it seems to work > pretty well with my tests: > > find /home/msteeds/Music/ -name \*[mM][Pp]3 | awk '{print "\""$0"\""}' | > xargs madplay > > of course if you have like a text file listing of songs you want in your > "playlist" (like an .m3u, say) you should be able to just replace that find > with a cat as in: > > cat myPlaylist.m3u | awk '{print "\""$0"\""}' | xargs madplay > > but I didn't actually try that. > > ----- Original Message ----- > From: "Matthew Seeds" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Monday, November 25, 2002 11:48 PM > Subject: [Siglinux] madplay playlists > > > I've recently been playing around with some command line mp3 players. I > cannot figure out how to do a playlist for madplay. I know it can accept > multiple files, but beyond listing them all on the command line I can't get > it to work. I know that the following will work for mpg123: > > mpg123 --list <(find /home/mtseeds/Music/ -name '*.mp3') > > However this doesn't work for madplay (mainly because madplay does not have > the --list option). I know that there are playlist managers that work with > madplay, but those all require X Windows. I'm trying to keep this strictly > command line. I'm trying to use madplay because I've discovered a couple > of mp3's I have that mpg123 can't play, but madplay can. Any help would be > appreciated.
_______________________________________________ Siglinux mailing list [EMAIL PROTECTED] http://www.utacm.org/mailman/listinfo/siglinux