*BSD News Article 99878


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.rmit.EDU.AU!news.unimelb.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!news1.best.com!news.idiom.com!not-for-mail
From: karl@idiom.com (Karl)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: how to cut a piece of file?
Date: 18 Jul 1997 01:30:55 -0700
Organization: karl@idiom.com
Lines: 13
Message-ID: <5qn9jv$6h1@idiom.com>
References: <33CCD3A6.CADC65F7@mcnet.ch> <ISHIZUKA.97Jul18093706@onion.ish.org>
NNTP-Posting-Host: idiom.com
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:44613

Masachika ISHIZUKA <ishizuka@ish.org> wrote:

> > I'm working on Free BSD 2.2.1 and I have to make a new file with the
> > last 10Mb of  a 200Mb log file. How can I do that (without editing the
> > file...! :))
> 
> % tail -c 10485760 200Mblog >last10Mblog

Is FreeBSD free of the limits that hassle SunOS users?  (SunOS has plenty
of utilities like head/tail that are limited to 32k.)

If so, it's easy enough to ftp and compile the gnu utilities.