Re: Making random(6) actually useful...

Erik Trulsson <[email protected]> Sun, 9 Feb 2003 13:46:54 +0100
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
On Sun, Feb 09, 2003 at 02:47:27AM -0800, Sean Chittenden wrote:
> There isn't much useful functionality that I'm aware of that comes out
> of random(6) as its implemented currently.  What I was originally out
> to do was to randomize the search order of dist sites for
> ports/packages and didn't find anything that did what I wanted and was
> BSD licensed (or small).  The new random(6) functionality allows for:
> 
> 1) randomizing the order of downloads from a mirrors list.  For
>    example, in a Makefile:
> 
> DOWNLOAD_SITES= `echo -n "${MASTER_SITE_RUBY} "| random -wf -`
> DOWNLOAD_SITES+= MASTER_SITE_LOCAL
> 
> 2) randomizing playlists for MP3s:
> 
>    find ~/mp3s -name '*.mp3' | random -f - > play_list.m3u

Have you looked at misc/shuffle from the ports collection?  It seems to
do what you want, is small and is BSD-licensed.


-- 
<Insert your favourite quote here.>
Erik Trulsson
[email protected]

To Unsubscribe: send mail to [email protected]
with "unsubscribe freebsd-audit" in the body of the message