From owner-freebsd-questions Fri Dec 11 01:04:40 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA08605 for freebsd-questions-outgoing; Fri, 11 Dec 1998 01:04:40 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from post.mail.demon.net (post-11.mail.demon.net [194.217.242.40]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA08594 for ; Fri, 11 Dec 1998 01:04:32 -0800 (PST) (envelope-from marko@uk.radan.com) Received: from [158.152.75.22] (helo=uk.radan.com) by post.mail.demon.net with smtp (Exim 2.054 #1) id 0zoOUg-00052B-00; Fri, 11 Dec 1998 09:04:22 +0000 Organisation: Radan Computational Ltd., Bath, UK. Phone: +44-1225-320320 Fax: +44-1225-320311 Received: from beavis.uk.radan.com (beavis [193.114.228.122]) by uk.radan.com (8.6.10/8.6.10) with SMTP id JAA02797; Fri, 11 Dec 1998 09:03:47 GMT Received: from uk.radan.com (gppsun4) by beavis.uk.radan.com (4.1/SMI-4.1) id AA02600; Fri, 11 Dec 98 09:03:45 GMT Message-Id: <3670DFB6.9A890347@uk.radan.com> Date: Fri, 11 Dec 1998 09:02:46 +0000 From: Mark Ovens Organization: Radan Computational Ltd X-Mailer: Mozilla 4.03 [en] (X11; I; SunOS 4.1.3_U1 sun4m) Mime-Version: 1.0 To: Sue Blake Cc: freebsd-questions@FreeBSD.ORG Subject: Re: carving up a file References: <19981211195018.15365@welearn.com.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? > Take a look at split(1) HTH > -- > > Regards, > -*Sue*- > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message -- Trust the computer industry to shorten Year 2000 to Y2K. It was this thinking that caused the problem in the first place. Mark Ovens, CNC Applications Engineer, Radan Computational Ltd. Bath, Avon, England. Sheet Metal CAD/CAM Solutions mailto:marko@uk.radan.com http://www.radan.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message