From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lee Sau Dan Newsgroups: gmane.emacs.help Subject: Re: Reading portions of large files Date: 20 Jan 2003 08:50:30 +0100 Organization: Rechenzentrum der Universitaet Freiburg, Germany Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=cn-big5 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1043056834 15652 80.91.224.249 (20 Jan 2003 10:00:34 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 20 Jan 2003 10:00:34 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18aYjF-000443-00 for ; Mon, 20 Jan 2003 11:00:29 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18aYVb-0006Di-02 for gnu-help-gnu-emacs@m.gmane.org; Mon, 20 Jan 2003 04:46:23 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!news.stupi.se!news.stupi.se!news.tele.dk!news.tele.dk!small.news.tele.dk!npeer.de.kpn-eurorings.net!news-kar1.dfn.de!news-stu1.dfn.de!news.belwue.de!news.uni-freiburg.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 23 Original-NNTP-Posting-Host: camaro.informatik.uni-freiburg.de User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Original-Xref: shelby.stanford.edu gnu.emacs.help:109215 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:5746 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:5746 >>>>> "Brendan" == Brendan Halpin writes: Brendan> Use head and tail to split the file into the Brendan> header-to-be-edited and the-rest. Edit the Brendan> header-to-be-edited in emacs, save, then concatenated Brendan> the-rest onto it. Brendan> Assuming all editing is within the first 2000 bytes (not Brendan> tested): Brendan> head -c2000 bigfile > header-to-be-edited Brendan> tail -c+2001 bigfile > the-rest Brendan> (edit header-to-be-edited, save) Brendan> cat header-to-be-edited the-rest > new-big-file Why not use 'split'? :) -- Lee Sau Dan §õ¦u´°(Big5) ~{@nJX6X~}(HZ) E-mail: danlee@informatik.uni-freiburg.de Home page: http://www.informatik.uni-freiburg.de/~danlee