From owner-freebsd-questions@FreeBSD.ORG Sun Dec 21 21:26:12 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08A411065676 for ; Sun, 21 Dec 2008 21:26:12 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from email2.allantgroup.com (email2.emsphone.com [199.67.51.116]) by mx1.freebsd.org (Postfix) with ESMTP id B86538FC1D for ; Sun, 21 Dec 2008 21:26:11 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan-a.emsphone.com [199.67.51.107]) by email2.allantgroup.com (8.14.0/8.14.0) with ESMTP id mBLLQ7sA046213 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 21 Dec 2008 15:26:07 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (smmsp@localhost [127.0.0.1]) by dan.emsphone.com (8.14.3/8.14.3) with ESMTP id mBLLQ65w042264 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 21 Dec 2008 15:26:07 -0600 (CST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.14.3/8.14.3/Submit) id mBLLQ6Bk042261; Sun, 21 Dec 2008 15:26:06 -0600 (CST) (envelope-from dan) Date: Sun, 21 Dec 2008 15:26:06 -0600 From: Dan Nelson To: Kelly Jones Message-ID: <20081221212606.GF90803@dan.emsphone.com> References: <26face530812211223m118c8f11rbc16e1a69e01f582@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26face530812211223m118c8f11rbc16e1a69e01f582@mail.gmail.com> X-OS: FreeBSD 7.1-PRERELEASE User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Scanned: ClamAV version 0.94.1, clamav-milter version 0.94.1 on email2.allantgroup.com X-Virus-Status: Clean X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (email2.allantgroup.com [199.67.51.78]); Sun, 21 Dec 2008 15:26:07 -0600 (CST) X-Scanned-By: MIMEDefang 2.45 Cc: freebsd-questions@freebsd.org Subject: Re: bzip2split X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 21 Dec 2008 21:26:12 -0000 In the last episode (Dec 21), Kelly Jones said: > Can I split a large (4G+) bzip2 file into smaller bzip2 files? Notes: > > % Obviously, 'split' won't work for 2 reasons: > > % Each chunk won't have the BZIP2 header > > % 'split' will cut the file inside a bzip2 "block", rendering the > first/last blocks of each file unreadable. The bzip2recover command will split each block of data in a bzip2 file into separate .bz2 files; you can then cat them back together to create runs of files however big you want. Even though the resulting files have bzip2 headers between blocks, bunzip2 will skip over them when extracting. -- Dan Nelson dnelson@allantgroup.com