From owner-freebsd-questions Fri Nov 2 12:40:11 2001 Delivered-To: freebsd-questions@freebsd.org Received: from sage-american.com (sage-american.com [216.122.141.44]) by hub.freebsd.org (Postfix) with ESMTP id 2D5B437B401 for ; Fri, 2 Nov 2001 12:40:00 -0800 (PST) Received: from sageone (adsl-64-219-30-182.dsl.crchtx.swbell.net [64.219.30.182]) by sage-american.com (8.9.3/8.9.3) with SMTP id OAA06813; Fri, 2 Nov 2001 14:39:53 -0600 (CST) Message-Id: <3.0.5.32.20011102144008.00faefc0@mail.sage-american.com> X-Sender: jacks@mail.sage-american.com X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Fri, 02 Nov 2001 14:40:08 -0600 To: Cliff Sarginson , freebsd-questions@FreeBSD.ORG From: jacks@sage-american.com Subject: Re: Splitting a tar archive In-Reply-To: <20011102213212.A8522@raggedclown.net> References: <3.0.5.32.20011102113219.00f94888@mail.sage-american.com> <20011101160655.O92340-100000@bsd.smnolde.com> <20011101222033.C53366-100000@jodie.ncptiddische.net> <3.0.5.32.20011102113219.00f94888@mail.sage-american.com> <3.0.5.32.20011102124221.00f94888@mail.sage-american.com> <20011102204953.D6967@raggedclown.net> 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 Here's the split that worked on a 4.8MB file: #split mybigfile splitfile -b 1MB That gives 4 1MB files at exactly the same bytes and balance of bytes in the smaller file.... They need to be reassembled in the proper order.... At 09:32 PM 11.2.2001 +0100, Cliff Sarginson wrote: >On Fri, Nov 02, 2001 at 04:16:31PM -0500, Jim Arnold wrote: >> At 8:49 PM +0100 11/2/01, Cliff Sarginson wrote: >> >On Fri, Nov 02, 2001 at 03:24:09PM -0500, Jim Arnold wrote: >> >> ok, now that I have a directory full of files like >> >> >> >> xkw xwh yhs ytd zeo >> >> xkx xwi yht yte zep >> >> xky xwj yhu ytf zeq >> >> xkz >> >> >> >> how do i go about getting them back into the >> >> original file. >> >> >> >> cat ./* > file doesn't seem to work >> >> >> >What do you mean it doesn't work !? >> >What happens then..? >> >> >> The file size that gets created when I cat the files >> is smaller than the original file. Here's what I did to test >> this out: >> >> >> 1. Here is the original file and size: >> -rw-r--r-- 1 jim jim 148281148 Nov 2 15:07 bogey_full.mov >> >> 2. The above file was copied into its own directory, than I ran this command: >> split bogey_full.mov >> >> 3. After split is finished I killed out the original file: >> bash-2.05$ rm bogey_full.mov >> >> 4. Next I run this command: >> bash-2.05$ cat ./* > bogey_full.mov >> >> 5. When I check the file after the cat command runs I see that >> the reconstituted file is *much* small, plus it no longer works... >> >> bash-2.05$ ls -l bogey_full.mov >> -rw-r--r-- 1 jim jim 41399664 Nov 2 15:10 bogey_full.mov >> -- >> >Try it again, using the "-b" option to specify the number of >bytes to put in each of the split files. > >-- >Regards >Cliff > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message > > Best regards, Jack L. Stone, Server Admin Sage-American http://www.sage-american.com jacks@sage-american.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message