GNU bug report logs - #20725
Shuf problem

Previous Next

Package: coreutils;

Reported by: Federico Alves <venefax <at> gmail.com>

Date: Wed, 3 Jun 2015 13:21:03 UTC

Severity: normal

Tags: wontfix

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #14 received at 20725 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Federico Alves <venefax <at> gmail.com>
Cc: 20725 <at> debbugs.gnu.org
Subject: Re: bug#20725: Shuf problem
Date: Wed, 03 Jun 2015 15:34:50 +0100
tag 20725 wontfix
close 20725
stop

On 03/06/15 14:40, Federico Alves wrote:
> Dear Padraig
> I think this is exactly the case. Please consider a very large file. It would be very inefficient to use sed first, and the shuf. A simple switch in shuf would be way better.
> It should be ON ny default, I believe.

For a large file shuf will use reservoir sampling as it does for pipes,
and so there should not be significant differences in the base
operation on files and pipes.  Also shuffling a large file containing
blank lines seems like a slightly unusual case, and thus not worth
complicating the interface with another option for.

thanks,
Pádraig.





This bug report was last modified 9 years and 358 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.