Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 1998 22:41:20 +1100
From:      Sue Blake <sue@welearn.com.au>
To:        Jacques Hugo <jacques@ctech.ac.za>
Cc:        questions@FreeBSD.ORG
Subject:   Re: carving up a file
Message-ID:  <19981211224120.09768@welearn.com.au>
In-Reply-To: <3670DF30.41C67EA6@ctech.ac.za>; from Jacques Hugo on Fri, Dec 11, 1998 at 11:00:32AM %2B0200
References:  <19981211195018.15365@welearn.com.au> <3670DF30.41C67EA6@ctech.ac.za>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Dec 11, 1998 at 11:00:32AM +0200, Jacques Hugo wrote:
> Sue Blake wrote:
> > 
> > I've got a 2 meg text (RTF) file to split into a dozen files, one for
> > each chapter, after each time it is edited.
> > 
> > There is a distinctive string at the beginning of each chapter,
> > another could be added to the file, or I could go by line numbers.
> > 
> > Is there already an easy way to do this, or do I roll my own?
> 
> Roll my own ?? ;) cute.
> 
> Have a look at split(1)
> 
> -b gives you byte-count and -l by lines.


That looks handy! If only I'd known about it at the start, I could have
made sure all the chapters were written to equal lengths :-)


-- 

Regards,
        -*Sue*-


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?19981211224120.09768>