From unknown Sat Jun 21 03:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16831: don't say uniq -D -c is meaningless Resent-From: mcmasters Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 21 Feb 2014 16:39:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 16831 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 16831@debbugs.gnu.org X-Debbugs-Original-To: Bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13930007401280 (code B ref -1); Fri, 21 Feb 2014 16:39:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Feb 2014 16:39:00 +0000 Received: from localhost ([127.0.0.1]:34923 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGt7s-0000KZ-5F for submit@debbugs.gnu.org; Fri, 21 Feb 2014 11:39:00 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34642) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGr6F-0005EO-9M for submit@debbugs.gnu.org; Fri, 21 Feb 2014 09:29:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGr64-0000Cb-2B for submit@debbugs.gnu.org; Fri, 21 Feb 2014 09:29:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:40901) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGr63-0000CX-V7 for submit@debbugs.gnu.org; Fri, 21 Feb 2014 09:28:59 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36344) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGr5y-0001Ji-O6 for Bug-coreutils@gnu.org; Fri, 21 Feb 2014 09:28:59 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGr5t-0000B4-OZ for Bug-coreutils@gnu.org; Fri, 21 Feb 2014 09:28:54 -0500 Received: from sam.nabble.com ([216.139.236.26]:48560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGr5t-0000Aw-JC for Bug-coreutils@gnu.org; Fri, 21 Feb 2014 09:28:49 -0500 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WGr5r-0001Il-Eh for Bug-coreutils@gnu.org; Fri, 21 Feb 2014 06:28:47 -0800 Date: Fri, 21 Feb 2014 06:28:47 -0800 (PST) From: mcmasters Message-ID: <1392992927442-22627.post@n7.nabble.com> In-Reply-To: <449FA908.9060802@draigBrady.com> References: <449FA908.9060802@draigBrady.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Mailman-Approved-At: Fri, 21 Feb 2014 11:38:58 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From unknown Sat Jun 21 03:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16831: don't say uniq -D -c is meaningless Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Fri, 21 Feb 2014 18:16:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16831 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: mcmasters Cc: 16831@debbugs.gnu.org Received: via spool by 16831-submit@debbugs.gnu.org id=B16831.139300656015643 (code B ref 16831); Fri, 21 Feb 2014 18:16:01 +0000 Received: (at 16831) by debbugs.gnu.org; 21 Feb 2014 18:16:00 +0000 Received: from localhost ([127.0.0.1]:35010 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGudj-00044A-9U for submit@debbugs.gnu.org; Fri, 21 Feb 2014 13:15:59 -0500 Received: from mail1.vodafone.ie ([213.233.128.43]:20155) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WGudg-00043u-M1 for 16831@debbugs.gnu.org; Fri, 21 Feb 2014 13:15:57 -0500 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApMBAKmWB1NtTO3C/2dsb2JhbAANRwbBTYMIgSWDGQEBAQQyAUYQCw0LCRYPCQMCAQIBRQYNAQcBAYgGqUmiDReOIUMHhDgBA58kjmQ Received: from unknown (HELO [192.168.1.79]) ([109.76.237.194]) by mail1.vodafone.ie with ESMTP; 21 Feb 2014 18:15:50 +0000 Message-ID: <530797D5.2020306@draigBrady.com> Date: Fri, 21 Feb 2014 18:15:49 +0000 From: =?UTF-8?Q?P=C3=A1draig?= Brady User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 References: <449FA908.9060802@draigBrady.com> <1392992927442-22627.post@n7.nabble.com> In-Reply-To: <1392992927442-22627.post@n7.nabble.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) 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. From unknown Sat Jun 21 03:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16831: don't say uniq -D -c is meaningless Resent-From: mcmasters Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 25 Feb 2014 18:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16831 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 16831@debbugs.gnu.org X-Debbugs-Original-To: Bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.13933545145535 (code B ref -1); Tue, 25 Feb 2014 18:56:02 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2014 18:55:14 +0000 Received: from localhost ([127.0.0.1]:39800 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIN9t-0001RD-V5 for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:55:14 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46137) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WIN9q-0001Qs-IW for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:55:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIN9f-0004D3-0t for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:55:05 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:33652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIN9e-0004Cu-UQ for submit@debbugs.gnu.org; Tue, 25 Feb 2014 13:54:58 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIN9Z-0000U3-T7 for Bug-coreutils@gnu.org; Tue, 25 Feb 2014 13:54:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WIN9U-0004C3-TG for Bug-coreutils@gnu.org; Tue, 25 Feb 2014 13:54:53 -0500 Received: from sam.nabble.com ([216.139.236.26]:34486) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WIN9U-0004Bv-Ou for Bug-coreutils@gnu.org; Tue, 25 Feb 2014 13:54:48 -0500 Received: from tom.nabble.com ([192.168.236.105]) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1WIN9S-0006Pm-BA for Bug-coreutils@gnu.org; Tue, 25 Feb 2014 10:54:46 -0800 Date: Tue, 25 Feb 2014 10:54:46 -0800 (PST) From: mcmasters Message-ID: <1393354486336-22641.post@n7.nabble.com> In-Reply-To: <530797D5.2020306@draigBrady.com> References: <449FA908.9060802@draigBrady.com> <1392992927442-22627.post@n7.nabble.com> <530797D5.2020306@draigBrady.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From unknown Sat Jun 21 03:15:24 2025 X-Loop: help-debbugs@gnu.org Subject: bug#16831: don't say uniq -D -c is meaningless Resent-From: =?UTF-8?Q?P=C3=A1draig?= Brady Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Wed, 19 Mar 2014 16:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16831 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: mcmasters Cc: 16831@debbugs.gnu.org Received: via spool by 16831-submit@debbugs.gnu.org id=B16831.13952477575890 (code B ref 16831); Wed, 19 Mar 2014 16:50:02 +0000 Received: (at 16831) by debbugs.gnu.org; 19 Mar 2014 16:49:17 +0000 Received: from localhost ([127.0.0.1]:41400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQJg4-0001Wt-E2 for submit@debbugs.gnu.org; Wed, 19 Mar 2014 12:49:16 -0400 Received: from mx1.redhat.com ([209.132.183.28]:21402) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WQJg0-0001Wg-Hh for 16831@debbugs.gnu.org; Wed, 19 Mar 2014 12:49:13 -0400 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s2JGnB1J028373 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 19 Mar 2014 12:49:11 -0400 Received: from [10.36.116.89] (ovpn-116-89.ams2.redhat.com [10.36.116.89]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s2JGn8Of031218 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 19 Mar 2014 12:49:10 -0400 Message-ID: <5329CA84.30406@draigBrady.com> Date: Wed, 19 Mar 2014 16:49:08 +0000 From: =?UTF-8?Q?P=C3=A1draig?= Brady User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 References: <449FA908.9060802@draigBrady.com> <1392992927442-22627.post@n7.nabble.com> <530797D5.2020306@draigBrady.com> <1393354486336-22641.post@n7.nabble.com> In-Reply-To: <1393354486336-22641.post@n7.nabble.com> X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25 X-Spam-Score: -5.0 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Thu Oct 11 18:15:48 2018 Received: (at control) by debbugs.gnu.org; 11 Oct 2018 22:15:48 +0000 Received: from localhost ([127.0.0.1]:45654 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAjFE-0002PD-5i for submit@debbugs.gnu.org; Thu, 11 Oct 2018 18:15:48 -0400 Received: from mail-pf1-f181.google.com ([209.85.210.181]:39391) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gAjFC-0002Ow-D5 for control@debbugs.gnu.org; Thu, 11 Oct 2018 18:15:46 -0400 Received: by mail-pf1-f181.google.com with SMTP id c25-v6so5102440pfe.6 for ; Thu, 11 Oct 2018 15:15:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:message-id:date:user-agent:mime-version:content-language :content-transfer-encoding; bh=aCMPf+7kyoxN+rBTekFZz3oWrRjDvMuc6vTuYT21Ayk=; b=jQSTj1oIOh/kU+0QgvVa9jAf+WwO4i158LaHlPg5KcDpTdIIMVsexf46xGQWHnYLM8 +zReHcVThWS5DKY2PtiaYQGoq0/qHoDTNNNQ7BTSHUqQwf5HTyh5a6RobQNQugQFtydJ Rt2cbxuXfVQHEozp/uVR62CVqhNPR6aaaYGnlGU20ZoIjt4uN5rnGh2BcOMDV5upRjvo 6dwGWMSXjJC8ddSe+KJfFeLw6KnDTzBrUeAiZj247qIw5PooKZAmz9jkgQfx2LmRWPJC 98xDJquUSuqjjWj758gJwUlPLaWqlEn+H43oIvxpqV7epCT+uuams8HD7MkjZy1uo3/8 nwXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:message-id:date:user-agent:mime-version :content-language:content-transfer-encoding; bh=aCMPf+7kyoxN+rBTekFZz3oWrRjDvMuc6vTuYT21Ayk=; b=XAcJmAEOey9bb2WzHT6+srgmRjRzR4cDJbuTkbhLNQxG/XSET2F5+c/jjtle2ISd0V YsQW4UwM1Z1NbdhHaf5HYWoZ0bZ6A7oO7bzRAWXn4000cNozruOCjhAqqpwg2RAkePfP CboI+2L8zn9621bO6EApDM3/7ZZVOJt7Ca3HO7PZ4EXgZXAorXCKS93G/O64ggjklOud 3XKuBNBnYabnsHdE00C3fOPEUO9WVB+MFDzrf7X37xHyNiFxeTz24yLJJxTZ5gEYlMWQ s0j/PGkwzaDWVWEWjs5iKC2GQvuq9P92h+5Y5lCllSnlj8/pChugcBAQtQhPz3RZnIbG h/8A== X-Gm-Message-State: ABuFfogJB04BZVDOwb0VfdxCQKygSQpusXbFwqFvlObU9/zrOBl+BIHK lIYX2UAUTb546doifRv5Qh/++IfM X-Google-Smtp-Source: ACcGV63/p1ZxnixeZlKyAhWdRojntCOIqhMBML/uGDJBsBc9xOlhDy1myTnczOQ7SPvTJ1b7zRMyWA== X-Received: by 2002:a62:3384:: with SMTP id z126-v6mr3277051pfz.85.1539296139769; Thu, 11 Oct 2018 15:15:39 -0700 (PDT) Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38]) by smtp.googlemail.com with ESMTPSA id t15-v6sm66768319pfj.7.2018.10.11.15.15.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 11 Oct 2018 15:15:38 -0700 (PDT) To: control@debbugs.gnu.org From: Assaf Gordon Message-ID: Date: Thu, 11 Oct 2018 16:15:36 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Spam-Score: 2.0 (++) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: tags 15308 notabug close 15308 tags 15634 notabug close 15634 tags 16004 notabug severity 16004 wishlist close 16004 [...] Content analysis details: (2.0 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (assafgordon[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.210.181 listed in list.dnswl.org] 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.210.181 listed in wl.mailspike.net] 1.8 MISSING_SUBJECT Missing Subject: header 0.2 NO_SUBJECT Extra score for no subject 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) tags 15308 notabug close 15308 tags 15634 notabug close 15634 tags 16004 notabug severity 16004 wishlist close 16004 tags 16245 notabug close 16245 tags 16249 notabug close 16249 tags 16249 notabug close 16249 close 16309 tags 16468 notabug close 16468 tag 16530 notabug close 16530 tags 16718 notabug close 16718 tags 16742 +moreinfo close 16742 tags 16831 wontfix close 16831 tags 16838 wontfix close 16838 tags 16872 fixed close 16872 close 16945 close 17224 tags 17503 + notabug close 17503 close 17546 tags 17904 notabug close 17904