[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reading portions of large files
From: |
Klaus Berndl |
Subject: |
Re: Reading portions of large files |
Date: |
11 Jan 2003 11:25:27 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
On 10 Jan 2003, Benjamin Riefenstahl wrote:
> Brendan Halpin <brendan.halpin@ul.ie> writes:
> > Use head and tail to split the file into the header-to-be-edited and
> > the-rest. Edit the header-to-be-edited in emacs, save, then
> > concatenated the-rest onto it.
> >
> > Assuming all editing is within the first 2000 bytes (not tested):
> >
> > head -c2000 bigfile > header-to-be-edited
> > tail -c+2001 bigfile > the-rest
> > (edit header-to-be-edited, save)
> > cat header-to-be-edited the-rest > new-big-file
>
> This assumes a) Unix, b) that you have the space and time ;-) to deal
> with the large temporary files.
Assumption a) is not necessary or correct because there is the cygwin-suite
for Windows available - IMHO a must for using Emacs on Windows-systems ;-)
Cygwin contains tail and head!
Klaus
--
Klaus Berndl mailto: klaus.berndl@sdm.de
sd&m AG http://www.sdm.de
software design & management
Thomas-Dehler-Str. 27, 81737 München, Germany
Tel +49 89 63812-392, Fax -220
Re: Reading portions of large files, Eric Pement, 2003/01/10
Re: Reading portions of large files, Brendan Halpin, 2003/01/10
Re: Reading portions of large files, Lee Sau Dan, 2003/01/20