Subject: bug#13032: 24.3.50; Request: Provide a `delete-duplicate-lines' command

From: Juri Linkov <[email-masked]>
Date: Fri, 30 Nov 2012 03:12:05 +0200

>>   C-u M-| awk -- '!a[$0]++' RET
>
> Isn't
>
>   C-u M-| uniq RET
>
> shorter and easier to type?

I use `uniq' only on files where lines are sorted.  OTOH, something like
'!a[$0]++' that is not limited to consecutive duplicates is better for
files where lines are not sorted such as log files, etc.