Re: randomising tracks: scripting question

2011-01-04 Thread Peter Vereshagin
You know St. Peter won't call my name, freebsd-questions! 2011/01/03 20:23:38 -0800 Joseph Olatt => To Frank Shute : JO> On Sun, Dec 26, 2010 at 05:09:30PM +, Frank Shute wrote: JO> > JO> > I generally play my tracks of an album like so: JO> > JO> > for track in $(cat trombone_shorty-backato

Re: randomising tracks: scripting question

2011-01-03 Thread Joseph Olatt
On Sun, Dec 26, 2010 at 05:09:30PM +, 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 usin

Re: randomising tracks: scripting question

2010-12-26 Thread Devin Teske
On Dec 26, 2010, at 11:02 AM, Frank Shute wrote: > On Sun, Dec 26, 2010 at 06:01:45PM +, RW wrote: >> >> On Sun, 26 Dec 2010 09:40:43 -0800 >> Chip Camden wrote: >> >>> Quoth Frank Shute on Sunday, 26 December 2010: I generally play my tracks of an album like so: for track

Re: randomising tracks: scripting question

2010-12-26 Thread Chris Brennan
On Sun, Dec 26, 2010 at 2:04 PM, b. f. wrote: > 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 orde

Re: randomising tracks: scripting question

2010-12-26 Thread b. f.
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-backa

Re: randomising tracks: scripting question

2010-12-26 Thread Frank Shute
On Sun, Dec 26, 2010 at 06:01:45PM +, RW wrote: > > On Sun, 26 Dec 2010 09:40:43 -0800 > Chip Camden wrote: > > > 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 > > > mplay

Re: randomising tracks: scripting question

2010-12-26 Thread Mark Caudill
How would I go about randomising the order of play using sh (preferably) or perl? I fiddled around for a minute without luck but I think between the built-in $RANDOM, tail and head you should be able to get a randomize going. I'd recommend putting a script together that just pulls a random li

Re: randomising tracks: scripting question

2010-12-26 Thread RW
On Sun, 26 Dec 2010 09:40:43 -0800 Chip Camden wrote: > 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. > >

Re: randomising tracks: scripting question

2010-12-26 Thread Chip Camden
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 (preferabl

randomising tracks: scripting question

2010-12-26 Thread Frank Shute
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