I have a small patch that adds an option (-s) to the random command.
It prints one random line out of every _denominator_ lines to stdout.

For example, if you feed it an ls of /bin (32 files) to stdin, with
"random -s 4" you will get series of 8 (=32/4) random filenames from
/bin.

        dalroi * cd /bin
        dalroi * ls|random -s 4
        chio
        dd
        domainname
        hostname
        mv
        red
        rmail
        test


If anybody is interested I'll send it, according to the guidelines (But
then I'll have to read up a bit on them first, this is my first FreeBSD
patch).

-- 
Alban Hertroys                              http://wit401310.student.utwente.nl
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                      Install a BSD and become religious.



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to