Example:
a43 test1 abc cvb bnm test2 kfo
I need all lines between test1 and test2. Normal grep does not work in this case. Do you have any
The answer by PratPor above:
cat test.txt | grep -A10 test1 | grep -B10 test2
is cool.. but if you don't know the file length:
cat test.txt | grep -A1000 test1 | grep -B1000 test2
Not deterministic, but not too bad. Anyone have better (more deterministic)?