. Use standard input if file1
. See also comm
. The exit codes are as follows:
Files are identical.
Files are different.
Files are inaccessible.
For each difference, print the byte number in decimal and the differing bytes in octal.
Work silently; print nothing, but return exit codes.
Print a message if two files are the same (exit code is 0):
cmp -s old new && echo 'no changes'