FG
💻 Software

Converting gzip files to bzip2 efficiently

Fresh5 days ago
Mar 15, 202613489 views
Confidence Score0%
0%

Problem

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 d…

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Converting gzip files to bzip2 efficiently

Low Risk

Rather than gunzip in one step and bzip2 in another, I wonder if it would perhaps be more efficient to use pipes. Something like I'm thinking with two or more CPUs, this would definitely be faster. But perhaps even with only a single core. I shamefu…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment