Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have 2 zip files:

file1.zip file2.zip

I want to compare the two zip files and then only extract the files missing in file2.zip (directory structure intact) so that I can merge them in.

Additionally, is there any way in linux to merge the 2 files (meaning only put files missing in file2.zip from file1.zip).

Thanks.

share|improve this question

migrated from stackoverflow.com Jan 3 '13 at 4:36

This question came from our site for professional and enthusiast programmers.

    
Check out zdiff. As far as merging only specific files, I don't know if this is possible in the manner that you want to do it. –  squiguy Jan 3 '13 at 2:50
add comment

1 Answer

1) unzip file1.zip in new directory 2) unzip file2.zip allowing overwrites in same directory 3) zip files in existing directory

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.