From owner-freebsd-hackers Mon Nov 29 11:34:35 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from wit401310.student.utwente.nl (wit401310.student.utwente.nl [130.89.236.150]) by hub.freebsd.org (Postfix) with ESMTP id 3917514F62 for ; Mon, 29 Nov 1999 11:34:29 -0800 (PST) (envelope-from dalroi@wit401310.student.utwente.nl) Received: from wit401310.student.utwente.nl (localhost [127.0.0.1]) by wit401310.student.utwente.nl (Postfix) with ESMTP id E6A051EC0 for ; Mon, 29 Nov 1999 20:34:41 +0100 (CET) Date: Mon, 29 Nov 1999 20:34:40 +0100 (CET) From: Alban Hertroys Subject: random (6) To: hackers@freebsd.org MIME-Version: 1.0 Content-Type: TEXT/plain; CHARSET=US-ASCII Message-Id: <19991129193441.E6A051EC0@wit401310.student.utwente.nl> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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