[Cialug] Malware, Spellcheck and iPods (Was Re: LUG meeting tomorrow)

Zachary Kotlarek zach at kotlarek.com
Tue Sep 15 12:38:22 CDT 2009


On Sep 15, 2009, at 12:06 PM, Josh More wrote:

> I still like XMMS.
>
> Seriously.  I don't understand why media players have all gotten so
> bloated.  All I want to do is point an app at a directory and have it
> play the files randomly.



That's just mpg123 and a little bash-fu:

mpg123  -Z  --list  <\
	(IFS=`echo -en "\n\b"`; \
	for i in `find $MUSIC_DIR -type f -name '*.mp3'`; \
	do echo "$RANDOM $i"; done | sort | sed -E 's%^[0-9]+ %%' | \
	sed 's%\([^a-zA-Z0-9/\.]\)%\\\1%g')

Sed flags may vary -- I think -E is -r in GNU-sed.

You could probably put VLC in there instead of mpg123 if you wanted to  
support other formats.

	Zach

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2746 bytes
Desc: not available
Url : http://cialug.org/pipermail/cialug/attachments/20090915/07d66365/attachment.bin 


More information about the Cialug mailing list