Converting gzip files to bzip2 efficiently

Posted by sundar on Super User See other posts from Super User or by sundar
Published on 2009-08-17T00:45:54Z Indexed on 2012/12/15 11:09 UTC
Read the original article Hit count: 413

Filed under:
|

I have a bunch of gzip files that I have to convert to bzip2 every now and then. Currently, I'm using a shell script that simply 'gunzip's each file and then 'bzip2's it. Though this works, it takes a lot of time to complete.

Is it possible to make this process more efficient? I'm ready to take a dive and look into gunzip and bzip2's source codes if necessary, but I just want to be sure of the payoff. Is there any hope of improving the efficiency of the process?

© Super User or respective owner

Related posts about conversion

Related posts about gzip