On Thu, 24 Jul 2003 01:28 pm, Brant Fitzsimmons wrote: > John Haywood wrote: [SNIPPY] > >I�m in a bit of a bind, trying to recover a corrupt file for a client. > >The first issue is that the file is 1.8gig, so I�m wondering if I�m going > > to have problems with cat <file>|grep <regex> >outputfile.txt.... > > Do you need the cat? > > Someone please tell me if I'm wrong, but shouldn't this work: > > grep <regex> <file> > outputfile.txt > > One less action to get in the way. > > >or is there a text editor which could handle that size (I have 512-meg > > RAM, and I know some editors try to load the whole thing into memory > > first) > > > >Then the real crunch: > > > >The following is the expression which is given on a website to do exactly > > what I need: > > > >[^\received: from .*\r > > > >and the second, > > > >[^\t].*\rReceived: from .*\r > > > > > >....but they both appear to have syntax errors!!! > > What are the exact strings that you are looking for? It may be a little > bit easier to determine what characters you need in your search pattern > if we knew that.
[SNIPPY] Thanks for that, Brant. Let me state as exactly as possible what I am trying to do: The file in question is a corrupt Microsoft Entourage message file. It is 1.8Gig in size (approx). I need to step through it and convert it to an mbox format file, by searching for patterns such as : received: from <name> Received: from <name> and replace these with: From <name> also, some messages start with From: Return Path: Then I need to get rid of garbage stuff between messages (odd characters, number strings etc.. Then save the whole thing out as a text file I�d prefer to use a GUI text editor if possible, as it looks as if I�ll still have to screen out some additional gumph manually according to the author. Just for completeness, here is the URL of what I am trying to do: http://www.entourage.mvps.org/faq/database.html, under Database Woes section Thanks for any help you may be able to offer -- john in sydney Mandrake Linux 9.1, Kernel version: 2.4.21-0.18mdk OpenPGP key available on www.keyserver.net 1024D/3E4A902F B38A AB0F 8658 D9E1 4900 3050 08FA D4FA 3E4A 902F
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com
