Edit a very large textfile

1

Possible Duplicate:
Is there a text editor for very big files?

I've a 3 gigabytes big log file and I have to edit just a few rows.

With Notepad++, I can't edit the file at all. Does someone have an idea how I can edit the file?

Is there an Editor, with which I can select a range of rows i want to display?

Thank you

Best Regards

Ueli

Posted 2011-08-29T14:25:33.087

Reputation: 163

Question was closed 2011-08-29T17:05:06.337

So you want to alter a log file? I don't understand the purpose of altering what it would seem is probably an automatically generated log file. Doesn't that kind of defeat the purpose of having a generated log? – EBGreen – 2011-08-29T14:47:45.923

http://www.emeditor.com/ – Joe Internet – 2011-08-29T15:14:37.300

Answers

1

Give GVIM a go. I have edited 500MB+ sized files without any issue.

TiCL

Posted 2011-08-29T14:25:33.087

Reputation: 433

1

If you are on a unix machine, bet bet is using the built in commands like Stream Edit (SED) or Vim. Any Gui Editor will

wesbos

Posted 2011-08-29T14:25:33.087

Reputation: 111

0

if they are straight forward changes, you could use sed to edit the file from the command-line. You can search for particular patters or move to a particular line and make the changes.

http://www.gnu.org/software/sed/manual/sed.html

uSlackr

Posted 2011-08-29T14:25:33.087

Reputation: 8 755