shavenlunatic
MIS
Hi,
I have been passed several files which are each around 15MB of plain text (about 300,000 lines), I need to filter it down to only contain lines which contain a certain string.
e.g. Document:
would output:
It seems simple enough to FIND the rows that contain a certain string and delete those lines.. but I want to delete all rows which don't contain those strings and be left with a list I can work with (will most likely end up dumping into excel or access but that's not for you to worry about for now
)
Thanks for any advice
________
clueless
I have been passed several files which are each around 15MB of plain text (about 300,000 lines), I need to filter it down to only contain lines which contain a certain string.
e.g. Document:
Code:
some random stuff
Date: 01/01/08
other random stuff
this is elephant speaking
moo moo moo
Date: 02/01/08
yellow makes my eyes bleed
where is the elephant
moo
would output:
Code:
Date: 01/01/08
this is elephant speaking
Date: 02/01/08
where is the elephant
It seems simple enough to FIND the rows that contain a certain string and delete those lines.. but I want to delete all rows which don't contain those strings and be left with a list I can work with (will most likely end up dumping into excel or access but that's not for you to worry about for now
Thanks for any advice
________
clueless