From owner-freebsd-questions Thu May 24 8: 6:59 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mr200.netcologne.de (mr200.netcologne.de [194.8.194.109]) by hub.freebsd.org (Postfix) with ESMTP id 3FF2B37B422 for ; Thu, 24 May 2001 08:06:56 -0700 (PDT) (envelope-from pherman@frenchfries.net) Received: from husten.security.at12.de (dial-194-8-195-167.netcologne.de [194.8.195.167]) by mr200.netcologne.de (Mirapoint) with ESMTP id AFZ81910; Thu, 24 May 2001 17:06:51 +0200 (CEST) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by husten.security.at12.de (8.11.3/8.11.3) with ESMTP id f4OF6Mb31994; Thu, 24 May 2001 17:06:23 +0200 (CEST) (envelope-from pherman@frenchfries.net) Date: Thu, 24 May 2001 17:06:22 +0200 (CEST) From: Paul Herman To: Ceri Cc: Odhiambo Washington , FBSD-Q Subject: Re: Large mail file (3GB) In-Reply-To: <20010524155804.B13000@cartman.techsupport.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 24 May 2001, Ceri wrote: > On Thu, May 24, 2001 at 05:44:37PM +0300, Odhiambo Washington said: > > Hello Mate, > > > > I have a file that is 3GB in mbox format. I need to split it into 3 parts > > then access it using elm, or even mutt. Is there a utility in FreeBSD that > > can be used to truncate a file into some predetermined parts? > > dd(1) ? I think he wants to keep the mbox format, so that each part is readable by elm, or even mutt. Wash, if that's the case, then formail(1) (included with procmail) will split up one big mbox file into smaller ones. Heck, if you want a small programming exercise, awk or perl could even do it. If preserving the mbox format is not important (i.e. ignoring "^From " lines), then the aforementioned dd(1) or split(1) will do the trick. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message