Page 1 of 1

large file handling

Posted: Thu Jul 26, 2007 11:01 am
by alanm
hi,
I have a text file of some 900,000 lines. I need to edit this file to remove the first 400,000 lines. Is there an easy way to do this from within zeus.


or is there a quick and easy way to delete every line with a particular phrase. I have many 000s of lines with the phrase 'writing data into runtime'.


regards

Alan

Posted: Thu Jul 26, 2007 11:35 pm
by jussij
Hi Alan,
I have a text file of some 900,000 lines. I need to edit this file to
remove the first 400,000 lines. Is there an easy way to do this from
within zeus.

Zeus is really not great at editing large files, only becasuse it must load the enitre file into memory. Another cause of problems is the fact when you do the delete 400,000 lines will be put into the undo buffer.

But provided you system has lots of RAM it might work :?

If it was me I would make a good backup copy of the file and then see if it can be done in Zeus. If I find Zeus running too slowly I would kill the task and use a script to do the delete :?:

Cheers Jussi

Posted: Sat Jul 28, 2007 8:57 pm
by alanm
Hi,
I found ZEUS to be really good at editing files with use of the macro feature. I have managed to deal with my large file by generating a macro to remove pages of data at a time. long winded but it works.

regards

Alan