GNU bug report logs - #16831
don't say uniq -D -c is meaningless

Previous Next

Package: coreutils;

Reported by: mcmasters <daniel_mcmasters <at> merck.com>

Date: Fri, 21 Feb 2014 16:39:01 UTC

Severity: normal

Tags: wontfix

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16831 in the body.
You can then email your comments to 16831 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#16831; Package coreutils. (Fri, 21 Feb 2014 16:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to mcmasters <daniel_mcmasters <at> merck.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Fri, 21 Feb 2014 16:39:02 GMT) Full text and rfc822 format available.

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

From: mcmasters <daniel_mcmasters <at> merck.com>
To: Bug-coreutils <at> gnu.org
Subject: Re: don't say uniq -D -c is meaningless
Date: Fri, 21 Feb 2014 06:28:47 -0800 (PST)
I think uniq -D -c may be meaningful when used in conjuction with -f
Specifically, I wanted to use uniq -D -c -f 1 to find lines that are
identical with respect to field 2 (-f 1), get a listing of how many times
they occur (-c), but not throw away the differences in field 1 (-D)
Is there a way to do that with uniq?



--
View this message in context: http://gnu-coreutils.7620.n7.nabble.com/don-t-say-uniq-D-c-is-meaningless-tp3678p22627.html
Sent from the Gnu - Coreutils - Discuss mailing list archive at Nabble.com.




Information forwarded to bug-coreutils <at> gnu.org:
bug#16831; Package coreutils. (Fri, 21 Feb 2014 18:16:01 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: mcmasters <daniel_mcmasters <at> merck.com>
Cc: 16831 <at> debbugs.gnu.org
Subject: Re: bug#16831: don't say uniq -D -c is meaningless
Date: Fri, 21 Feb 2014 18:15:49 +0000
On 02/21/2014 02:28 PM, mcmasters wrote:
> I think uniq -D -c may be meaningful when used in conjuction with -f
> Specifically, I wanted to use uniq -D -c -f 1 to find lines that are
> identical with respect to field 2 (-f 1), get a listing of how many times
> they occur (-c), but not throw away the differences in field 1 (-D)
> Is there a way to do that with uniq?

So given:

a v1
b v2
c v2

you want output like this?

2 b v2
2 c v2

It's unusual to repeat counts like that,
and uniq doesn't support that at present.

Could you expand on the use case perhaps?

thanks,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#16831; Package coreutils. (Tue, 25 Feb 2014 18:56:02 GMT) Full text and rfc822 format available.

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

From: mcmasters <daniel_mcmasters <at> merck.com>
To: Bug-coreutils <at> gnu.org
Subject: Re: bug#16831: don't say uniq -D -c is meaningless
Date: Tue, 25 Feb 2014 10:54:46 -0800 (PST)
It was a very specific computational chemistry use, and I went ahead and
wrote a short Perl script to get what I wanted. If this is an unusual
request I can certainly live without it.
Thanks, I'm a big uniq fan!



--
View this message in context: http://gnu-coreutils.7620.n7.nabble.com/don-t-say-uniq-D-c-is-meaningless-tp3678p22641.html
Sent from the Gnu - Coreutils - Discuss mailing list archive at Nabble.com.




Information forwarded to bug-coreutils <at> gnu.org:
bug#16831; Package coreutils. (Wed, 19 Mar 2014 16:50:02 GMT) Full text and rfc822 format available.

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

From: Pádraig Brady <P <at> draigBrady.com>
To: mcmasters <daniel_mcmasters <at> merck.com>
Cc: 16831 <at> debbugs.gnu.org
Subject: Re: bug#16831: don't say uniq -D -c is meaningless
Date: Wed, 19 Mar 2014 16:49:08 +0000
tag 16831 wontfix
close 16831
stop

On 02/25/2014 06:54 PM, mcmasters wrote:
> It was a very specific computational chemistry use, and I went ahead and
> wrote a short Perl script to get what I wanted. If this is an unusual
> request I can certainly live without it.
> Thanks, I'm a big uniq fan!

Since this is an unusual case and
would require different memory and processing complexity to implement,
I'm closing at this time.

thanks,
Pádraig.




Added tag(s) wontfix. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 11 Oct 2018 22:16:06 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 16831 <at> debbugs.gnu.org and mcmasters <daniel_mcmasters <at> merck.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 11 Oct 2018 22:16:06 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 09 Nov 2018 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 225 days ago.

Previous Next


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