Date: Sun, 26 Dec 2010 17:09:30 +0000 From: Frank Shute <frank@shute.org.uk> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: randomising tracks: scripting question Message-ID: <20101226170930.GA68817@orange.esperance-linux.co.uk>
next in thread | raw e-mail | index | archive | help
I generally play my tracks of an album like so: for track in $(cat trombone_shorty-backatown.m3u); do mplayer $track done They then play in the correct order. How would I go about randomising the order of play using sh (preferably) or perl? Sorry for the OT posting but I thought a brainteaser might clear the fog caused by excessive Xmas indulgence ;) Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20101226170930.GA68817>