Lets assume you have a file containing:
Code:
one two three
four five six
seven eight nine
ten eleven twelve
A B C
D E F
And you want to start copying when you find a line containing five in the second field and stop when you find C in the third field (but not including those lines) the command:
Code:
awk 'BEGIN{x=0}{if ($3=="C") {x=0};if (x) {print};if ($2=="five") {x=1}}' file
will do the job.
This will only work assuming the second condition never appears before the first condition, which is what I have understand from your first post. Anyway, its something rough as an example.
BEGIN clause will only execute once at the begining of awk. The rest of the code will be executed for every line read from file.