Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Dec 2002 14:30:52 +0100
From:      Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To:        "Gerald T. Freymann" <freymann@scaryg.shacknet.nu>
Cc:        Andre Albsmeier <andre.albsmeier@mchp.siemens.de>, freebsd-questions@freebsd.org
Subject:   Re: How to truncate a file in the beginning
Message-ID:  <20021213143052.B1855@curry.mchp.siemens.de>
In-Reply-To: <20021213081506.O8685-100000@scaryg.shacknet.nu>; from freymann@scaryg.shacknet.nu on Fri, Dec 13, 2002 at 08:15:22AM -0500
References:  <20021213141110.A99587@curry.mchp.siemens.de> <20021213081506.O8685-100000@scaryg.shacknet.nu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 13-Dec-2002 at 08:15:22 -0500, Gerald T. Freymann wrote:
> On Fri, 13 Dec 2002, Andre Albsmeier wrote:
> 
> > Are there any special features in FreeBSD that I can use
> > to truncate a file in the beginning?
> 
>  Sure.
> 
>  man split
> 
>  should do it!

Don't think so... from the split manpage:

     The split utility reads the given file and breaks it up into files of
     1000 lines each.  If file is a single dash (`-') or absent, split reads
     from the standard input.
     ...

Maybe my email wasn't very clear regarding this: I can't afford to
read the 10GB (or even more) and move them to a new file (this would
have to be done on the same disk so it would take too long). I need
something that moves the start of the file to a position within the
file and discard all bytes upto that position.

I had a look at split.c but it does exactly that what I don't
need: It reads and writes...

	-Andre

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021213143052.B1855>