[boulder.pm] FW: text extract

Justin Crawford Justin.Crawford at cusys.edu
Wed Jul 25 17:39:02 CDT 2001


Whoa, got ahead of myself there...

I'm trying to extract multiple lines of data from a text file, only if one
of the lines contains a string.  Picture a file like so:

1a
haystack
haystack
haystack
haystack
1b

2a
haystack
haystack
NEEDLE!!!
haystack
2b

I want to cruise the text file getting every chunk that's like the one from
2a to 2b.

What's the best way?

Thanks!

Justin Crawford
Oracle DBA Team
University of Colorado Management Systems
303-492-9083
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 2069 bytes
Desc: not available
Url : http://mail.pm.org/archives/boulder-pm/attachments/20010725/14457f61/attachment.bin


More information about the Boulder-pm mailing list