Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Nov 2001 14:40:08 -0600
From:      jacks@sage-american.com
To:        Cliff Sarginson <cliff@raggedclown.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: Splitting a tar archive
Message-ID:  <3.0.5.32.20011102144008.00faefc0@mail.sage-american.com>
In-Reply-To: <20011102213212.A8522@raggedclown.net>
References:  <a05100313b808ba9bc433@[206.128.102.10]> <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> <a05100310b808b104839b@[206.128.102.10]> <20011102204953.D6967@raggedclown.net> <a05100313b808ba9bc433@[206.128.102.10]>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3.0.5.32.20011102144008.00faefc0>