Gentoo Archives: gentoo-user

From: James <wireless@×××××××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Grep question
Date: Mon, 02 Mar 2009 14:06:40
Message-Id: loom.20090302T140336-904@post.gmane.org
In Reply to: [gentoo-user] Grep question by Adam Carter
1 Adam Carter <Adam.Carter <at> optus.com.au> writes:
2
3
4 > I need to select all
5 > the lines between string1 and string2 in a file. String1 exists on
6 an entire
7 > line by itself and string2 will be at the start of a line. What's
8 the syntax? I
9 > cant use -A as there is a variable number of lines.
10
11 AWK
12
13 is my vote. Old, *SIMPLE* and used by most other packages when pattern matching
14 is involved. Often AWK and SED go together..... As do Perl and AWK
15
16
17 http://www.softpanorama.org/Tools/awk.shtml
18
19
20 hth,
21
22 James

Replies

Subject Author
[gentoo-user] Re: Grep question Harry Putnam <reader@×××××××.com>