Is there a safe way to run a diff on two zip compressed files?

前端 未结 13 1040
长发绾君心
长发绾君心 2020-12-16 12:49

Seems this would not be a deterministic thing, or is there a way to do this reliably?

相关标签:
13条回答
  • 2020-12-16 13:39

    Actually gzip and bzip2 both come with dedicated tools for doing that.

    With gzip:

    $ zdiff file1.gz file2.gz
    

    With bzip2:

    $ bzdiff file1.bz2 file2.bz2
    

    But keep in mind that for very large files, you might run into memory issues (I originally came here to find out about how to solve them, so I don't have the answer yet).

    0 讨论(0)
提交回复
热议问题