From owner-freebsd-questions Fri Nov 2 12:32:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from post.mail.nl.demon.net (post-10.mail.nl.demon.net [194.159.73.20]) by hub.freebsd.org (Postfix) with ESMTP id CEAAB37B407 for ; Fri, 2 Nov 2001 12:32:19 -0800 (PST) Received: from [212.238.77.116] (helo=buffy.raggedclown.net) by post.mail.nl.demon.net with esmtp (Exim 3.33 #1) id 15zkzC-0002Vt-00 for freebsd-questions@FreeBSD.ORG; Fri, 02 Nov 2001 20:32:18 +0000 Received: by tanya.raggedclown.net (Ragged Clown Mailhost, from userid 500) id 56F8311F1; Fri, 2 Nov 2001 21:32:12 +0100 (CET) Date: Fri, 2 Nov 2001 21:32:12 +0100 From: Cliff Sarginson To: freebsd-questions@FreeBSD.ORG Subject: Re: Splitting a tar archive Message-ID: <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 Content-Disposition: inline User-Agent: Mutt/1.3.16i In-Reply-To: ; from jim@ohio.com on Fri, Nov 02, 2001 at 04:16:31PM -0500 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 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