GNU bug report logs - #24929
comm enhancement proposal: --print-summary --quiet

Previous Next

Package: coreutils;

Reported by: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>

Date: Sat, 12 Nov 2016 09:46:02 UTC

Severity: normal

Tags: fixed

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

Bug is archived. No further changes may be made.

Full log


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

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: 積丹尼 Dan Jacobson <jidanni <at> jidanni.org>,
 24929 <at> debbugs.gnu.org
Subject: Re: bug#24929: comm enhancement proposal: --print-summary --quiet
Date: Mon, 14 Nov 2016 11:30:03 +0100
On 11/12/2016 12:24 AM, 積丹尼 Dan Jacobson wrote:
> Please add a comm --print-summary and --quiet, so we wouldn't have to write
> $ comm FILE1 FILE2|perl -nwe '
> /^\t+/;
> $h{ length $& || 0 }++;
> 
> END {
>     @L = ( "Lines in 1st ", "Lines in 2nd ", "Lines in both" );
>     printf "%s: %5d\n", $L[$_], $h{$_} for sort keys %h;
> }
> '
> Lines in 1st :   601
> Lines in 2nd :   437
> Lines in both:  2417

This sounds like a domain of diffstat(1), doesn't it?

Have a nice day,
Berny




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

Previous Next


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