[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Maximum buffer size exceeded
From: |
Michael Welsh Duggan |
Subject: |
Re: Maximum buffer size exceeded |
Date: |
Wed, 05 May 2004 13:16:27 -0400 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
Harish Narayanan <harish@gamebox.net> writes:
> Thanks Kin.
>
> I do things like that when I need to edit the last or first few
> lines. What if the portions I need edited are at some arbitrary line
> numbers in the middle? I don't always know exactly where they will be.
I had to deal with this recently for some files, as I ended up using
something like "split -C 100m". You can use cat to rejoin them
afterwards.
> Kin Cho wrote:
>
>>Harish Narayanan <harish@gamebox.net> writes:
>>
>>
>>
>>>I've been trying to open a large file (208 MB) but I receive the
>>>error "Maximum buffer size exceeded" and Emacs fails to open the
>>>file. This is Emacs 21.2.1 on a Redhat GNU/Linux 9 box.
>>>
>>>I tried searching in the archives, and noticed this has been
>>>asked before, but the responses don't seem encouraging. Is there
>>>a way of working around this that's arisen in the recent past?
>>>
>>>
>>
>>Use head/tail/dd to extract the small part of the file you want
>>to edit, edit that small file, then use cat/head/tail/dd to put
>>it back into your original file.
>>
>>Let's say you want to edit the last line of the file 208MB, which
>>is 1 million lines long:
>>
>>tail -1 208MB > foo
>>emacs foo
>>(head -999999 208MB; cat foo) > new-208MB
>>
>>-kin
>>
>>_______________________________________________
>>Help-gnu-emacs mailing list
>>Help-gnu-emacs@gnu.org
>>http://mail.gnu.org/mailman/listinfo/help-gnu-emacs
>>
>>
>>
>
>
>
--
Michael Welsh Duggan
(md5i@cs.cmu.edu)
- Re: Maximum buffer size exceeded, (continued)
- Re: Maximum buffer size exceeded, Thien-Thi Nguyen, 2004/05/05
- Message not available
- Re: Maximum buffer size exceeded, Marco Gidde, 2004/05/05
- Re: Maximum buffer size exceeded, Eli Zaretskii, 2004/05/05
- Message not available
- Re: Maximum buffer size exceeded, Marco Gidde, 2004/05/05
- Re: Maximum buffer size exceeded, Eli Zaretskii, 2004/05/06
- Message not available
- Re: Maximum buffer size exceeded, Marco Gidde, 2004/05/06
- Re: Maximum buffer size exceeded, Thien-Thi Nguyen, 2004/05/06
- Message not available
- Re: Maximum buffer size exceeded, Miles Bader, 2004/05/05
- Re: Maximum buffer size exceeded, Stefan Monnier, 2004/05/05
- Re: Maximum buffer size exceeded, Eli Zaretskii, 2004/05/06
- Message not available
- Re: Maximum buffer size exceeded,
Michael Welsh Duggan <=
- Message not available
- Message not available
- Re: Maximum buffer size exceeded, upro, 2004/05/05
Re: Maximum buffer size exceeded, Matthieu Moy, 2004/05/05
Re: Maximum buffer size exceeded, Stefan Monnier, 2004/05/05