Gentoo Archives: gentoo-user

From: Harry Putnam <reader@×××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Grep question
Date: Thu, 05 Mar 2009 16:55:19
Message-Id: 877i333o6n.fsf@newsguy.com
In Reply to: Re: [gentoo-user] Re: Grep question by Etaoin Shrdlu
1 Etaoin Shrdlu <shrdlu@×××××××××××××.org> writes:
2
3 > On Tuesday 3 March 2009, 03:10, Harry Putnam wrote:
4 >
5 >> cat a | awk '/^foo/{FLAG=1}\
6 >> FLAG{print} \
7 >> /^bar/{FLAG=""}'
8 >
9 > awk '/^foo/,/^bar/' a
10 >
11 > does the same :)
12
13 Nice...

Replies

Subject Author
RE: [gentoo-user] Re: Grep question Adam Carter <Adam.Carter@×××××××××.au>