Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Re: Perl Way To Gzipping/Joining Multiple Gzip Files

by anneli (Pilgrim)
on Nov 04, 2011 at 07:44 UTC ( #935853=note: print w/replies, xml ) Need Help??

in reply to Perl Way To Gzipping/Joining Multiple Gzip Files

Is there Perl ways

Not really, as this is just a question of compression and archival. gzip doesn't do file-separation; it's just stream compression. So if you cat the existing .gz files together, as you see, you get one file back.

tar is made exclusively for putting multiple files together; have you considered taring the .gzs together? (You'd have .gz.tar instead of .tar.gz, kinda!)

Or, try .zip or .rar with a zero compression setting (as you will probably incur a size gain trying to compress the already compressed .gzs).

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://935853]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2022-05-21 00:28 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (76 votes). Check out past polls.