Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

How to edit specific part of large text file efficiently? The text file is has only ASCII characters and is about 500 MB. I always know a the string around which I'd like to do editting. I can open up the file in Emacs and search the string, and then do editting. Any better way?

share|improve this question

marked as duplicate by Mehper C. Palavuzlar, Sathya May 9 '12 at 4:47

This question was marked as an exact duplicate of an existing question.

Looks a lot like… . – Renan May 8 '12 at 16:49
up vote 0 down vote accepted

If you know regular expressions and it's a simple operation (e.g. search/replace), you probably want sed. Plenty of documentation is available here.

There's a list of options (at least for Windows) at this Stack Overflow question: Text editor to open big (giant, huge, large) text files

share|improve this answer
No. The edits will not be pattern based replacement. It is traditional content edits. – qazwsx May 8 '12 at 16:46
In the post you referred, it says "Emacs (has a low maximum buffer size limit if compiled in 32-bit mode)". How do I know if my Emacs is 32-bit mode or not? – qazwsx May 8 '12 at 17:10
On Linux at least, M-x version shows whether your Emacs is 32- or 64-bit. – Renan May 8 '12 at 17:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.