Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 11 Dec 1998 11:00:32 +0200
From:      Jacques Hugo <jacques@ctech.ac.za>
To:        Sue Blake <sue@welearn.com.au>
Cc:        questions@FreeBSD.ORG
Subject:   Re: carving up a file
Message-ID:  <3670DF30.41C67EA6@ctech.ac.za>
References:  <19981211195018.15365@welearn.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

Cheers

-Jacques

------------------------------------------------------
The box said "Requires Windows 3.1 or better"
			... so I got BSD

Network Administrator     | Jacques Hugo
UNIX Systems              | jacques@ctech.ac.za
Cape Technikon            | +27-21-4603584
------------------------------------------------------

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?3670DF30.41C67EA6>