Seems this would not be a deterministic thing, or is there a way to do this reliably?
Zcmp and zdiff are used to invoke the cmp or the diff program on files compressed via gzip. All options specified are passed directly to cmp or diff. If only 1 file is specified, then the files compared are file1 and an uncompressed file1. gz.
Beyond Compare has the ability to create ZIP files from files and folders in a Folder Compare session.
Zipping zips is fine. If there is a problem, that would be a bug in the compression software :). You will probably not get any further compression for those files though unless you're using a higher level of compression.
If you're using gzip, you can do something like this:
# diff <(zcat file1.gz) <(zcat file2.gz)
Reliable: unzip both, diff.
I have no idea if that answer's good enough for your use, but it works.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With