Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Nov 1999 20:34:40 +0100 (CET)
From:      Alban Hertroys <dalroi@wit401310.student.utwente.nl>
To:        hackers@freebsd.org
Subject:   random (6)
Message-ID:  <19991129193441.E6A051EC0@wit401310.student.utwente.nl>

next in thread | raw e-mail | index | archive | help
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 majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991129193441.E6A051EC0>