From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1LeRL9-0002DC-4N for garchives@archives.gentoo.org; Tue, 03 Mar 2009 09:55:07 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E3330E0329; Tue, 3 Mar 2009 09:55:05 +0000 (UTC) Received: from dcnode-02.unlimitedmail.net (smtp.unlimitedmail.net [94.127.184.242]) by pigeon.gentoo.org (Postfix) with ESMTP id 852D0E0329 for ; Tue, 3 Mar 2009 09:55:05 +0000 (UTC) Received: from ppp.zz ([137.204.208.98]) (authenticated bits=0) by dcnode-02.unlimitedmail.net (8.14.3/8.14.3) with ESMTP id n239sbnh030690 for ; Tue, 3 Mar 2009 10:54:38 +0100 From: Etaoin Shrdlu To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Grep question Date: Tue, 3 Mar 2009 10:52:31 +0100 User-Agent: KMail/1.9.9 References: <5602B0BD6D59AE4791BE83104940118D7B1B328A@excprdmbxw002.optus.com.au> <87ab832w6v.fsf@newsguy.com> In-Reply-To: <87ab832w6v.fsf@newsguy.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200903031052.31668.shrdlu@unlimitedmail.org> X-UnlimitedMail-MailScanner-From: shrdlu@unlimitedmail.org X-Spam-Status: No X-Archives-Salt: 892ee779-7804-43a0-9e7a-e8cdca4eb6c1 X-Archives-Hash: 904d4bf7487e49a262c0c9a94ee91947 On Tuesday 3 March 2009, 03:10, Harry Putnam wrote: > cat a | awk '/^foo/{FLAG=1}\ > FLAG{print} \ > /^bar/{FLAG=""}' awk '/^foo/,/^bar/' a does the same :)