bug-textutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

address@hidden: 'randline' utility for textutils]


From: Herbert Xu
Subject: address@hidden: 'randline' utility for textutils]
Date: Sun, 14 Jan 2001 19:01:58 +1100
User-agent: Mutt/1.2.5i

-- 
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <address@hidden>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
--- Begin Message --- Subject: 'randline' utility for textutils Date: Sun, 14 Jan 2001 00:07:29 -0700 User-agent: Mutt/1.2.5i
Hi, you know how most free software scratches an itch?  Well, I've had an
itch for a while - there's no standard text utility for randomizing the
lines in a file, which is useful for making multiple, unique random picks
from a file (rather than just one pick at a time, which may have
repetitions and such).  So a while back I took a stab at writing one.  This
is very, very rudimentary, but it does the job rather well.  My main usage
for it is generating a unique, purely-random but static-ordered playlist of
all my MP3s; for example, I have a shellscript which looks like this to
generate a random playlist and use it:

#!/bin/sh
find ~/mp3s -name '*.mp3' | randline > /tmp/$$.m3u
xmms /tmp/$$.m3u
rm /tmp/$$.m3u

The reason I'm rambling on about this is I'm including the source code for
randline, and am hoping you'd see fit to include it in the Debian textutils
distribution, and possibly pass it along to whoever is upstream that
maintains the standard stuff which textutils maintains.

Thanks in advance for your consideration. :)

-- 
Joshua Shagam                  /"\ ASCII Ribbon Campaign
address@hidden           \ / No HTML/RTF in email
www.cs.nmsu.edu/~joshagam       X  No Word docs in email
mp3.com/fluffyporcupine        / \ Respect for open standards

Attachment: randline.c
Description: Text document


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]