On 21 Apr 2008, at 16:48, Ike Oxford wrote:
I have hundreds of text files with this structure:
Date: April 15, 2008
Time: 2:36 p.m.
Name: Mark Smith
Phone: 2800
Section: Metro
Size: 1 column
Color or BW: Color
Run date: April 19, 2008
My goal is to extract and keep the lines prefixed with date:,
time:, name:, section: and run date:
Ultimately I would like to compile the filtered results on a single
text document and import into Excel.
Is this a job Text Factory can handle or do I need to learn some
scripting?
What you're after is "Process Lines Containing".
Select "Delete Matched Lines"
Then use grep patterns to match the start of lines you want to get
rid of.
^Phone:
^Size:
... as so on.
either that or don't tick the box and match lines you want to keep.
I hope this helps.
Regards,
Carlton
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>