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

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

Re: grep and sort


From: David Kastrup
Subject: Re: grep and sort
Date: Wed, 08 Dec 2010 15:24:59 -0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Antony <spam+lisp_dot_linux@gmail.com> writes:

> I'd like to find and sort all lines that contain 'TODO:'
> Sorting needs to be based on content and ignore filename
>
> rgrep works except for the sorting part
> The results should be in a grep like buffer so I can click on them
>
> If I can get some basic elisp code for this, that would be nice.
> I don't know how to modify the regrep command.
>
>
> Any pointers?

grep ... | sort -t : -k 2

-- 
David Kastrup


reply via email to

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