From owner-freebsd-bugs@FreeBSD.ORG Tue Aug 10 10:10:05 2010 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C3051106566B for ; Tue, 10 Aug 2010 10:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id B36B88FC1C for ; Tue, 10 Aug 2010 10:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7AAA5xw044520 for ; Tue, 10 Aug 2010 10:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7AAA5gd044519; Tue, 10 Aug 2010 10:10:05 GMT (envelope-from gnats) Date: Tue, 10 Aug 2010 10:10:05 GMT Message-Id: <201008101010.o7AAA5gd044519@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Oliver Fromme Cc: Subject: Re: bin/15205: [patch] Addition to random(6) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Oliver Fromme List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Aug 2010 10:10:05 -0000 The following reply was made to PR bin/15205; it has been noted by GNATS. From: Oliver Fromme To: freebsd-bugs@FreeBSD.ORG, bug-followup@FreeBSD.ORG, Alexander Best Cc: Subject: Re: bin/15205: [patch] Addition to random(6) Date: Tue, 10 Aug 2010 12:00:22 +0200 (CEST) Alexander Best wrote: > could you provide an example how to reproduce the same output > (ls /bin | random -s 8) with an unpatched copy of ranom? It's random, so it cannot be reproduced. ;-) But seriously ... If you want random 4 lines out of 32 (or out of any number, for that matter), the following command will do it: $ ls /bin | random -f - | head -4 I agree that this PR can be closed. Best regards Oliver -- Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M. Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung: secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün- chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd "The ITU has offered the IETF formal alignment with its corresponding technology, Penguins, but that won't fly." -- RFC 2549