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.
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.
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
3 matches
Mail list logo