|No such thing as a small change|
Perl Way To Gzipping/Joining Multiple Gzip Filesby neversaint (Deacon)
|on Nov 04, 2011 at 06:21 UTC||Need Help??|
neversaint has asked for the wisdom of the Perl Monks concerning the following question:
I have list of gzip files:
Is there Perl ways to join or compressing these files into one gzip file (one batch file) without having to decompress them individually? Moreover we want to preserve the files in gzip format after unzipping the batch file.
In practice we will use this in a web database (CGI). Where the web will receive a query from user and list out all the files based on the query and present them in a batch file back to the user.
I understand that we can do:
However upon gunzipping allfiles.gz the files file1.gz file2.gz file3.gz were not preserved in their existing gzip format.
neversaint and everlastingly indebted.......