Date: Tue, 10 Aug 2010 10:10:05 GMT From: Oliver Fromme <olli@lurza.secnetix.de> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/15205: [patch] Addition to random(6) Message-ID: <201008101010.o7AAA5gd044519@freefall.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/15205; it has been noted by GNATS.
From: Oliver Fromme <olli@lurza.secnetix.de>
To: freebsd-bugs@FreeBSD.ORG, bug-followup@FreeBSD.ORG,
Alexander Best <arundel@FreeBSD.ORG>
Cc:
Subject: Re: bin/15205: [patch] Addition to random(6)
Date: Tue, 10 Aug 2010 12:00:22 +0200 (CEST)
Alexander Best <arundel@freebsd.org> 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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008101010.o7AAA5gd044519>
