Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm looking for a solution to this or a recommendation for a program to check out. I'd appreciate any help.

Update

I would like to use the playlist file with PowerAMP for android.

share|improve this question
    
Is there a specific mp3 program/device you are intending to use these playlists for? –  Jason Iverson Jun 1 '11 at 4:08
    
I updated the question. Thanks for the feedback. –  James Jun 2 '11 at 6:55

2 Answers 2

up vote 6 down vote accepted

If an m3u file will suffice, just create a text file containing the directory you want (e.g. /home/user/music_for_playlist/ and save it with an m3u extension. m3u playlists allow this as a special instance, you don't have to enumerate all the files in the directory (your player does that when you open the playlist).

Alternatively, the following will create an m3u playlist containing all the mp3/wav/ogg/wma files in the current directory, this may be better if you want to exclude specific files or re-save the playlist:

find . -iregex '.*\.\(mp3\|wav\|ogg\|wma\)' -print > playlist.m3u
share|improve this answer

You could try the following command (while in the directory with the needed mp3s):

find `pwd` | grep .mp3 > playlist.m3u

You can then pass this to a program that accepts playlists via the command line.

share|improve this answer
    
what is pwd here.. –  karthick87 Jun 2 '11 at 9:49
    
@karthick87 It is the command pwd. It is print working directory. When you put it inside back quotes with find, it'll give you absolute paths, rather than relative to the current directory. –  Jason Iverson Jun 2 '11 at 13:45

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.