bleg: chopping a plain-text file
Oct. 18th, 2007 12:42 pmA question for systems people:
If a plain-text log-file gets too big to be openable by emacs (in my case 379MB), how can I search through it? Is it possible to chop such a file into several pieces?
grep works, but it doesn't let me see the context surrounding my hits.
UPDATE:
If a plain-text log-file gets too big to be openable by emacs (in my case 379MB), how can I search through it? Is it possible to chop such a file into several pieces?
grep works, but it doesn't let me see the context surrounding my hits.
UPDATE:
grep -An -Bn pattern file seems to find n lines before and after each hit. Still, not as good as a text editor...