help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to implement line sorting, uniquifying and counting function in


From: Jens Schmidt
Subject: Re: How to implement line sorting, uniquifying and counting function in emacs?
Date: 30 Sep 2002 01:12:56 -0700

Sorting:

  M-x apropos sort-.* RET

Counting:

  M-x apropos count.*lines RET

The only non-trivial part is uniquifying of buffer lines:

  M-x query-replace-regexp ^\(.*^Q^J\)\1+ \1 RET

where you need to type ^Q^J as C-q C-j, of course.  A non-interactive
variant should be as easy as the interactive.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]