I have two large pkl
files. I'm not interested in knowing the comparisons of the contents of two files (as we do for text files with diff
, meld
or vimdiff
). I suspect that they are the same. Their size is equal. But if I want to get certain that they are the same, is there any comparison utility that outputs if they are the same or not?
You can use
diff
with-q
option. Fromdiff
's manpage:Example usage:
If the files are identical, there will be no output. However, if you want to report if they are identical as well, you can use
-s
option with-q
.From the same manpage:
Example usage:
I don't suppose this will be any faster than
diff
, but you could compare checksums of the files: