Re: bzip2split

Matthew Barrick <[email protected]> Sun, 21 Dec 2008 13:31:21 -0700
Newsgroups gmane.org.user-groups.nmlug
Message-ID <[email protected]>
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.
> 


You can split the files like normal, then reassemble them to decompress

cat *.bz2.part.* | bzip2 -d

Something like that. The stream bzip2 will see will look like the joined
file.
_______________________________________________
NMLUG mailing list
[email protected]
http://lists.b9.com/cgi-bin/mailman/listinfo/nmlug