On Sat, 2023-06-03 at 09:01 +0200, Francis.Montagnac(a)inria.fr wrote:
Hi
On Fri, 02 Jun 2023 20:28:10 -0600 home user wrote:
> But diff can't compare contents of binary files.
No: it can:
diff /bin/ls /bin/pwd
Binary files /bin/ls and /bin/pwd differ
In your case you only need to know if the files differ, thus use
diff --brief -r ...
diff --brief /bin/ls /bin/pwd
Files /bin/ls and /bin/pwd differ
Or just use cmp.
poc