From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.help Subject: Re: grep and sort Date: Sun, 15 Aug 2010 16:58:12 +0200 Organization: Organization?!? Message-ID: <877hjr2a9n.fsf@lola.goethe.zz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291858082 4246 80.91.229.12 (9 Dec 2010 01:28:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 9 Dec 2010 01:28:02 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Dec 09 02:27:58 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQVIc-0003uZ-3d for geh-help-gnu-emacs@m.gmane.org; Thu, 09 Dec 2010 02:27:58 +0100 Original-Received: from localhost ([127.0.0.1]:42133 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQVIb-0002I7-H0 for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 20:27:57 -0500 Original-Path: usenet.stanford.edu!newsserver.news.garr.it!kanaga.switch.ch!switch.ch!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: 2FEFf>]>q>2iw=B6, xrUubRI>pR&Ml9=ao@P@i)L:\urd*t9M~y1^:+Y]'C0~{mAl`oQuAl \!3KEIp?*w`|bL5qr,H)LFO6Q=qx~iH4DN; i"; /yuIsqbLLCh/!U#X[S~(5eZ41to5f%E@'ELIi$t^ Vc\LWP@J5p^rst0+('>Er0=^1{]M9!p?&:\z]|;&=NP3AhB!B_bi^]Pfkw User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:SRBzAm7iC7pFPfdNI2yxMnNJVsg= Original-Lines: 18 Original-NNTP-Posting-Date: 15 Aug 2010 16:58:13 CEST Original-NNTP-Posting-Host: b904b7ac.newsspool4.arcor-online.net Original-X-Trace: DXC=`jVoQi]DIcJE4ZB2flKORA4IUKoa5EdS0OPG1_LiI6ENVaM3>5MOK`al0oRJ>0b4omZ3FB@Zj`K>mY5_?B Original-X-Complaints-To: usenet-abuse@arcor.de Original-Xref: usenet.stanford.edu gnu.emacs.help:180726 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:76383 Archived-At: Antony 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