From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "spamfilteraccount@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: Nested grep Date: 14 Nov 2006 08:00:11 -0800 Organization: http://groups.google.com Message-ID: <1163520011.440711.252020@m73g2000cwd.googlegroups.com> References: <1163511304.139898.234500@f16g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1163522478 6901 80.91.229.2 (14 Nov 2006 16:41:18 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 14 Nov 2006 16:41:18 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 14 17:41:12 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gk1LO-0000oz-SK for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Nov 2006 17:41:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Gk1LN-0001NA-Ks for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Nov 2006 11:41:05 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m73g2000cwd.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 18 Original-NNTP-Posting-Host: 81.182.19.19 Original-X-Trace: posting.google.com 1163520017 2490 127.0.0.1 (14 Nov 2006 16:00:17 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 14 Nov 2006 16:00:17 +0000 (UTC) In-Reply-To: User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.01 (Windows NT 5.0; U; en),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000cwd.googlegroups.com; posting-host=81.182.19.19; posting-account=b98TkQ0AAAD7PsllN8gfWGRoPOPWdnv4 Original-Xref: shelby.stanford.edu gnu.emacs.help:143103 Original-To: help-gnu-emacs@gnu.org 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:38721 Archived-At: Drew Adams =EDrta: > > In Emacs 22 you can pipe the output of one grep to another: grep foo|grep > bar|grep toto. Just type that at the grep prompt. > > You might also be interested in Icicles command `icicle-compilation-searc= h' > (`C-c `' in buffer *grep*), which lets you search among grep hits using > additional regexps - > http://www.emacswiki.org/cgi-bin/wiki/Icicles_-_Other_Search_Commands. Thanks, but none of these are what I need. I don't want to combine two grep commands. I want to run two completely different ones with the ability to restore the results of the first after I'm finished with the second.