Page 1 of 1

Filter to select lines the follow or precede a specific line

Posted: Wed Nov 30, 2005 4:19 pm
by gmb1994
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 */

Posted: Mon Dec 05, 2005 8:54 am
by DataMystic Support
Just use the 'context lines' options of the Filters\Extract\Extract lines matching Filter.