I'm trying to compare two directories that contain binary files, on AIX 6. I'm using
diff in preference to
dircmp, as I'm trying to maintain a consistent output format between this and my Linux servers, where
dircmp is not available.
According to the
If the Directory1 and Directory2 parameters are specified, the diff command compares the text files that have the same name in both directories. Binary files that differ, common subdirectories, and files that appear in only one directory are listed.
However, the binary files are also being compared, and their differences output to stdout, resulting in the terminal screen being flooded with unprintable characters, even modifying the size of my window (I'm using
pUTTY). The version of
diff doesn't have the
-q option. Is there any way to suppress this output and just report that the files differ? I'd prefer not to use
rsync -n, as that needs to be run twice, with to and from parameters reversed, to find missing files on both sides.