Filter to select lines the follow or precede a specific line
Posted: Wed Nov 30, 2005 4:19 pm
How do we select for (extract) a group of lines that either follow or precede a specific line, for example:
+ select the top line and the following 3 lines:
/* Important info follows this line */
apple banana cucumber
dog elephant fish
giraffe hippo igloo
+ select the 'Important Line' and the preceding 2 lines:
giraffe hippo igloo
dog elephant fish
apple banana cucumber
/* Important info precedes this line */
+ select the top line and the following 3 lines:
/* Important info follows this line */
apple banana cucumber
dog elephant fish
giraffe hippo igloo
+ select the 'Important Line' and the preceding 2 lines:
giraffe hippo igloo
dog elephant fish
apple banana cucumber
/* Important info precedes this line */