bug#44704: uniq: replace repeated lines with a message about how many repeated lines

2020-11-17 Thread Brian J. Murrell
On Tue, 2020-11-17 at 14:10 -0800, Paul Eggert wrote: > On 11/17/20 5:32 AM, Brian J. Murrell wrote: > > [previous line repeated 4 times] > > uniq -c already does something like that, though it outputs "5" > instead of "4". Right. I had considered that.

bug#44704: uniq: replace repeated lines with a message about how many repeated lines

2020-11-17 Thread Brian J. Murrell
On Tue, 2020-11-17 at 08:05 -0700, Assaf Gordon wrote: > > Hello, Hi, > uniq supports the "--group" option, which adds a blank line after > each > group of identical lines - this can be used down-stream to process > groups in any way you want. But there is no way to have it remove the repeated

bug#44704: uniq: replace repeated lines with a message about how many repeated lines

2020-11-17 Thread Brian J. Murrell
It would be a useful enhancement to uniq to replace all lines considered non-uniq (i.e. those that would be removed from the output) with a message about how many times the previous line was repeated. I.e. $ cat < signature.asc Description: This is a digitally signed message part