Skip site navigation (1)Skip section navigation (2)
Date:      12 Mar 2001 11:49:28 -0500
From:      Lowell Gilbert <lowell@world.std.com>
To:        chris@northernbrewer.com (Christopher Farley), freebsd-questions@freebsd.org
Subject:   Re: split bug?
Message-ID:  <448zmbhqzr.fsf@lowellg.ne.mediaone.net>
In-Reply-To: chris@northernbrewer.com's message of "12 Mar 2001 06:49:38 %2B0100"
References:  <20010311234915.A78116@northernbrewer.com>

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




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