Re: [gentoo-user] Grep question

2009-03-02 Thread Steven Lembark
Adam Carter wrote: 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. Perl will handle this easily enough for you.

[gentoo-user] Grep question

2009-03-01 Thread Adam Carter
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.

Re: [gentoo-user] Grep question

2009-03-01 Thread Mike Kazantsev
On Mon, 2 Mar 2009 13:01:31 +1100 Adam Carter adam.car...@optus.com.au wrote: 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