Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Looks a lot like superuser.com/questions/34749/… . –  Renan May 8 '12 at 16:49

1 Answer 1

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. –  Problemaniac 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? –  Problemaniac May 8 '12 at 17:10
1  
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.