[TAG] 2-cent tip: building MP3 playlists

Ben Okopnik ben at callahans.org
Tue Feb 3 18:19:57 MSK 2004


On Tue, Feb 03, 2004 at 02:42:31PM +0000, Thomas Adam wrote:
>  --- Ben Okopnik <ben at callahans.org> wrote: 
> 
> > I have a directory where I keep my MP3s, arranged my artist and album,
> > plus a few single songs in the top directory itself. What I wanted was
> > to build playlists for each album (where the name of the playlist would
> > be the same as that of the album), including one for all the singles;
> > not a hard task, considering that a playlist is nothing more than a list
> > of absolute paths to the mp3s to be played - which is exactly what the
> > "find" command produces when invoked that way.
> 
> Excellent. Assuming you have no ordering preference per se:
> 
> ``
> find /my/dir/with/songs/in -iname '*.mp3' -type f -maxdepth 1 | xargs
                                      ^
				      |
				      
Your DOS habits are showing, Thomas. :)

> mpg321 --list -

What's an "mpg321"? I'm familiar with "mpg123", but...

Also, this invocation of "find" would get _only_ the top-level MP3s -
none of the ones in the album subdirectories.


* Ben Okopnik * okopnik.freeshell.org * Technical Editor, Linux Gazette *
-*- See the Linux Gazette in its new home: <http://linuxgazette.net/> -*-




More information about the TAG mailing list