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

From: Paul Eggert <[email-masked]>
Date: Tue, 17 Nov 2020 14:10:56 -0800

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 yourself using awk or 
Python or whatever.