randomising tracks: scripting question
Chip Camden
sterling at camdensoftware.com
Sun Dec 26 17:40:49 UTC 2010
Quoth Frank Shute on Sunday, 26 December 2010:
> 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
>
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
change "cat t...n.m3u" to "random < t..n.m3u"
--
Sterling (Chip) Camden | sterling at camdensoftware.com | 2048D/3A978E4F
http://camdensoftware.com | http://chipstips.com | http://chipsquips.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20101226/f455da6d/attachment.pgp
More information about the freebsd-questions
mailing list