Results 1 to 6 of 6
I know how to use ls to output a playlist for mplayer if all the files are in the same directory but I was wondering if there was a way ...
- 05-07-2009 #1Just Joined!
- Join Date
- Mar 2008
- Posts
- 91
ls for mplayer playlist
I know how to use ls to output a playlist for mplayer if all the files are in the same directory but I was wondering if there was a way to do this recursive.
- 05-07-2009 #2
Does -R option help? if not how exactly are you producing the list?
- 05-08-2009 #3Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
I haven't tried it, but perhaps the find command could be helpful?
- 05-08-2009 #4Just Joined!
- Join Date
- Mar 2008
- Posts
- 91
- 05-08-2009 #5Just Joined!
- Join Date
- Mar 2008
- Posts
- 91
- 05-08-2009 #6Linux Guru
- Join Date
- Jan 2009
- Location
- Dover, NH
- Posts
- 1,633
It is recursive by default. Use grep to narrow your results to what's relevent.
find | grep -i avi > avilist.pls
will list all files in current directory notation ("./") from the current directory and all subdirectories with "avi" in the file or path name (case insensitive) and direct them to a file in the current directory called avilist.pls . The file may need some post editing in any text editor, but it'll make a reasonable quick and dirty playlist file.


Reply With Quote
