Re: [NMOSUG-L] bzip2split

"Wesley J. Landaker" <[email protected]> Sun, 21 Dec 2008 18:38:04 -0700
Newsgroups gmane.org.user-groups.nmlug
Message-ID <1229909884.9722.6.camel@chocobo>
On Sun, 2008-12-21 at 13:23 -0700, Kelly Jones wrote:
> 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.

Decompress it, split it, then compress it. You can do this as a
streaming operation.

(For bonus points use lzma instead of bzip2.)

_______________________________________________
NMLUG mailing list
[email protected]
http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug