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 [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to