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 am using Ubuntu 11.10 (I don't think that really matters) with Bash.

How can I make a music playlist out of a .txt file? It is a command but I forgot it. I would appreciate it if someone would write a tutorial.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

You have to go to the folder of the music, than type:

ls > music.txt

The .txt file can be named what ever you want. The ls uses all the files in the folder, listing them and the > redirects the command to a .txt. Than press Enter or Return and that's it. If you are using mplayer for example, you type

mplayer -playlist music.txt
share|improve this answer
add comment

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.