Merge .gz without unzipping
Is there any way to merge two or more .gz files without unzipping file?
|
I don't think so. gzip requires everything to be present (chaining blocks I think) which causes an issue.
Thus appending another compressed file to the end of one would just confuse gzip - making a corrupted file. |
Warning: this site is crawled by bots !!! the use of your EMAIL addres as a username is not a good idea in fact it is a VERY BAD ONE -- you will likely have to use a new address as that one is going to be SPAMED |
Quote:
Code:
cat a.gz b.gz > c.gz Sure it's hold for .xz and .bz2 formats. About .gz you have to check. By the way, why do you want do such a thing? |
Code:
cat a.gz b.gz > c.gz Appending the files together should not corrupt them its just that the first does not have any clue the second exists. I do not know of way either. |
just a comment, how it works? http://computerplumber.com/2014/03/m...iles-together/
And another solution: http://stackoverflow.com/questions/2...mpressing-them |
I did finally find the posted links... I was wrong and my memory failed me again.
Hmm. cat does work. |
All times are GMT -5. The time now is 04:00 PM. |