Filter to select lines the follow or precede a specific line

Get help with installation and running here.

Moderators: DataMystic Support, Moderators

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

Postby gmb1994 » 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 */

User avatar
DataMystic Support
Site Admin
Posts: 2164
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Postby DataMystic Support » Mon Dec 05, 2005 8:54 am

Just use the 'context lines' options of the Filters\Extract\Extract lines matching Filter.
Regards,

Simon Carter, http://DataMystic.com/forums/index.php
http://PredictBGL.com - Insulin dose calculator for Type 1 diabetes
http://DownloadPipe.com - 250,000 free software downloads
http://DetachPipe.com - send huge email attachments


Return to “TextPipe Tips and Tricks, Questions and Support”

Who is online

Users browsing this forum: No registered users and 3 guests