From owner-freebsd-questions Mon Mar 12 8:49:43 2001 Delivered-To: freebsd-questions@freebsd.org Received: from be-well.ilk.org (lowellg.ne.mediaone.net [24.147.184.128]) by hub.freebsd.org (Postfix) with ESMTP id B8D9A37B71C for ; Mon, 12 Mar 2001 08:49:40 -0800 (PST) (envelope-from lowell@be-well.ilk.org) Received: (from lowell@localhost) by be-well.ilk.org (8.11.3/8.11.3) id f2CGnTA24136; Mon, 12 Mar 2001 11:49:29 -0500 (EST) (envelope-from lowell) To: chris@northernbrewer.com (Christopher Farley), freebsd-questions@freebsd.org Subject: Re: split bug? References: <20010311234915.A78116@northernbrewer.com> From: Lowell Gilbert Date: 12 Mar 2001 11:49:28 -0500 In-Reply-To: chris@northernbrewer.com's message of "12 Mar 2001 06:49:38 +0100" Message-ID: <448zmbhqzr.fsf@lowellg.ne.mediaone.net> Lines: 25 X-Mailer: Gnus v5.7/Emacs 20.7 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG chris@northernbrewer.com (Christopher Farley) writes: > I've been trying to split a large binary file using split(1). Are there > any caveats pertaining to the use of split with binary files? I searched > around, but could only find encouraging information... > > Anyway, here's my problem specifically: I've got a large gzipped file, > and I split it like so: > > # split -b 660m myfile.gz > > The four resulting files (xaa, xab, xac, xad) cannot be reassembled > to create the original gzipped file. > > # cat xaa xab xac xad | diff seward-dump.gz - > Binary files seward-dump.gz and - differ > > Is this a bug, or user error? :) I don't know, but I can't reproduce it: # dd if=/dev/urandom of=foobar bs=1000000 count=2000 # split -b 660m foobar # cat x*|diff foobar - # To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message