|
From: | Juri Linkov |
Subject: | bug#13032: 24.3.50; Request: Provide a `delete-duplicate-lines' command |
Date: | Fri, 30 Nov 2012 02:31:21 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (x86_64-pc-linux-gnu) |
> That is: provide a function `delete-duplicate-lines' (or some such) > that removes all duplicate lines in the active region and prints in > the echo area a message like "Duplicate lines removed: <n>". This is what I currently use to delete duplicate lines: C-u M-| awk -- '!a[$0]++' RET Do you intend to create a Lisp function with the same result?
[Prev in Thread] | Current Thread | [Next in Thread] |