[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Looping a script
- From: Vidiot <brown mrvideo vidiot com>
- To: redhat-list redhat com
- Subject: Re: Looping a script
- Date: Sun, 18 Feb 2001 17:17:51 -0600 (CST)
>Mike McNally wrote:
>
>> You can also make it play all .mp3 files in a directory
>> like this:
>>
>> #!/bin/sh
>>
>> while :; do
>> for mp3 in *.mp3; do
>> amp -p "$mp3"
>> done
>> done
>
> However, this will play the files sequentially, in (sorted) order. I
>want it to be randomized, like the output of 'ls -AQU'
>
> AMK4
You didn't say that at first. No fair changing the question in the middle
of the answers.
Use a player that can randomize the list of songs given it.
MB
--
e-mail: vidiot vidiot com
Bart: Hey, why is it destroying other toys? Lisa: They must have
programmed it to eliminate the competition. Bart: You mean like
Microsoft? Lisa: Exactly. [The Simpsons - 12/18/99]
Visit - URL:http://www.vidiot.com/ (Your link to Star Trek and UPN)
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]