all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: help editing huge files in emacs
Date: Wed, 15 Mar 2006 09:03:03 -0700	[thread overview]
Message-ID: <dv9dt3$jbc$1@sea.gmane.org> (raw)
In-Reply-To: <5876e7e80603141110t3ecd0389kb5095a5636dd441e@mail.gmail.com>

Jesús Velazquez wrote:
> How can I edit a selected number of lines in a 4GB file in Emacs
> without open the whole file? Is it possible?

beg=12345
end=67890

sed -n "${beg},${end}p" big_file > excerpt
emacs excerpt
sed "${beg},${end}d;$((beg - 1)r excerpt" big_file > new_big_file

-- 
Kevin Rodgers

  reply	other threads:[~2006-03-15 16:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-14 19:10 help editing huge files in emacs Jesús Velazquez
2006-03-15 16:03 ` Kevin Rodgers [this message]
     [not found] <mailman.44.1142401192.9686.help-gnu-emacs@gnu.org>
2006-03-15  6:09 ` Stefan Monnier
2006-03-15 16:16   ` Mathias Dahl
2006-03-17 11:50   ` Eli Zaretskii
     [not found]   ` <mailman.9.1142596212.3794.help-gnu-emacs@gnu.org>
2006-03-21 16:27     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='dv9dt3$jbc$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.