Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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


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
up vote 7 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
Having abosulte paths reduces the portability of the playlist – Shenal Silva Oct 19 '15 at 7:44

Your Answer


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.