[X-Unix] Parsing or splitting a text file
Richard Nagle
cms01 at tampabay.rr.com
Wed Sep 28 13:15:57 PDT 2005
exactly, and the subject, would be the name of each new text file...
Richard
Doug McNutt wrote:
> At 15:16 -0400 9/28/05, Richard Nagle wrote:
>> What would be the fastest way,
>> of splitting a large text document into separate doc,
>> via a common identifier "From ???@???"
>>
>> This From ???@???, is at the top of every email document,
>> inside this large single text file.
>> this file contains about 15,000 emails.
>
> That sounds like a job for perl.
>
> I was fussing with mailboxes produced by Eudora that look a lot like that. (This list for instance.) I was collecting and sorting by Subject: line to make one file file for each subject. It's been a while since I looked at it. When I realized I needed to handle "Antwort", "AW", and others I got discouraged. Ask off line if you'd like a copy of my last known perl script.
>
--
I will not be pushed, filed, stamped, indexed, briefed, debriefed, or
numbered!
My life is my own - No. 6
More information about the X-Unix
mailing list