Gentoo Archives: gentoo-user

From: Adam Carter <Adam.Carter@×××××××××.au>
To: "gentoo-user@l.g.o" <gentoo-user@l.g.o>
Subject: [gentoo-user] Grep question
Date: Mon, 02 Mar 2009 02:01:32
Message-Id: 5602B0BD6D59AE4791BE83104940118D7B1B328A@excprdmbxw002.optus.com.au
I need to select all the lines between string1 and string2 in a file. String1 exists on an entire line by itself and string2 will be at the start of a line. What's the syntax? I cant use -A as there is a variable number of lines.

Thanks.

Replies

Subject Author
Re: [gentoo-user] Grep question Mike Kazantsev <mike_kazantsev@×××××××.net>
Re: [gentoo-user] Grep question Steven Lembark <lembark@×××××××.com>
[gentoo-user] Re: Grep question James <wireless@×××××××××××.com>