Filter to select lines the follow or precede a specific line

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
gmb1994
Posts: 7
Joined: Wed Nov 30, 2005 7:19 am
Location: Dallas, Texas, USA

Filter to select lines the follow or precede a specific line

Post 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 */
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Post by DataMystic Support »

Just use the 'context lines' options of the Filters\Extract\Extract lines matching Filter.
Post Reply