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 #8 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>, 20725 <at> debbugs.gnu.org
Subject: Re: bug#20725: Shuf problem
Date: Wed, 03 Jun 2015 14:33:35 +0100
On 03/06/15 14:20, Federico Alves wrote:
> I think that shuf should have an option, may set ON by default, to avoid empty lines in a file when shuffling it. if a file has 100 lines and ten are simply returns, 99% of the time I do not want an empty line, I want only the real lines.

We would only consider that if it provided functional benefits
or large performance gains.  Neither would be the case here I think
compared to some simple preprocessing like:

 sed '/^$/d' | shuf

cheers,
Pádraig




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

Previous Next


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