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. Something like:
$ cat /tmp/in | uniq
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".
Not sure it's worth gussying up 'uniq' to provide exactly the functionality
requested, as output reformatting is easy enough to do
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
tag 44704 notabug
severity 44704 wishlist
stop
Hello,
On 2020-11-17 6:32 a.m., Brian J. Murrell wrote:
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
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