Edit a very large textfile [duplicate]

Posted on

QUESTION :

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

ANSWER :

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

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

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

Leave a Reply

Your email address will not be published.