Shuffle
Lars Noschinski
lars-2006-1 at usenet.noschinski.de
Fri Jan 25 09:38:46 PST 2008
* John Reimer <terminal.node at gmail.com> [08-01-25 06:03]:
>Walter Bright wrote:
>>For fun, I ordered a new car stereo that would play music from an SD card or
>>USB stick(rather than from CD), and installed it over the weekend. The problem
>>is loading songs onto the SD card from my home music server, which I like to
>>hear played at random.
>>The solution is a simple D program, shuffle, which will randomly copy music
>>files to an SD card until it fills up. Have some fun with it!
[..]
>And what would be the Tango equivalent, I wonder? ;)
I don't know about Tango, but this is the solution with GNU coreutils -
lame, I know ;)
find -type f -a \( -name '*.mp3' -o -name '*.wma' \) -print0 | \
shuf -z | \
xargs -0 -i cp {} SDCARD_PATH
More information about the Digitalmars-d-announce
mailing list