On Sun, 18 Feb 2001, Ashley M. Kirchner wrote: > > a) If I do 'ls -AQU *.mp3', the result is always sorted. > However, if I just do 'ls -AQU' it's not sorted. > This little script should give you a randomized selection of the MP3's. -- cut -- #!/bin/bash let m=32768 n=0 while: do set *.mp3 shift $(( ($#*RANDOM) / (m+1) )) [ ${n%$#} ] && amp -p $1 let n=$# done -- cut -- -- John Darrah (u05192) | Dept: N/C Programming Giddens Industries | Ph: (425) 353-0405 #229 PO box 3190 | Ph: (206) 767-4212 #229 Everett WA 98203 | Fx: (206) 764-9639 _______________________________________________ Redhat-list mailing list [EMAIL PROTECTED] https://listman.redhat.com/mailman/listinfo/redhat-list
- Re: Looping a script rpjday
- Re: Looping a script Johannes Eriksson
- Re: Looping a script Ashley M. Kirchner
- Re: Looping a script Dave Wreski
- Re: Looping a script Vidiot
- Re: Looping a script Ashley M. Kirchner
- Re: Looping a script Ashley M. Kirchner
- Re: Looping a script Johannes Eriksson
- Re: Looping a script Ashley M. Kirchner
- Re: Looping a script John H Darrah
- Re: Looping a script John H Darrah
- Re: Looping a script Bret Hughes
- Re: Looping a script Johannes Eriksson
- Re: Looping a script Bret Hughes
- Re: Looping a script rpjday
- Re: Looping a script Johannes Eriksson
- More than 1 account in Netsca... Wendy William
- Re: More than 1 account in Ne... Robert Key
- Re: Looping a script Bret Hughes
- Re: Looping a script rpjday
- Re: Looping a script Bret Hughes