Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Dec 2010 19:04:48 +0000
From:      "b. f." <bf1783@googlemail.com>
To:        Frank Shute <frank@shute.org.uk>
Cc:        freebsd-questions@FreeBSD.org
Subject:   Re: randomising tracks: scripting question
Message-ID:  <AANLkTikBHbJorvRpcMb7ZG3KzAMsTVAfqCQe0RS1N=_Y@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
Frank Shute wrote:
>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?

cat trombone_shorty-backatown.m3u | xargs mplayer ... -shuffle

or

mplayer ... -playlist trombone_shorty-backatown.m3u -shuffle

if they are in a uncommented, one-absolute-path-per-line format
without extended directives?

b.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTikBHbJorvRpcMb7ZG3KzAMsTVAfqCQe0RS1N=_Y>