cmp.1 897 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. CMP(1) "fases core"
  2. # NAME
  3. cmp - compare two files
  4. # SYNOPSIS
  5. *cmp* [*-l*|*-s*] *file1* *file2*
  6. # DESCRIPTION
  7. Compare two files. If the files are identical, *cmp* doesn't write anything
  8. to standard output and returns 0. Else, with no options, it writes to
  9. standard output the byte and line number at which it found the first
  10. difference and returns 1.
  11. *-l*
  12. Write the byte number and the differing bytes for each difference in
  13. decimal and octal respectively.
  14. *-s*
  15. Write nothing to standard output or standard error when the files
  16. differ. Only write diagnostic messages to standard error.
  17. # EXAMPLES
  18. *cmp -s foo.txt bar.txt*
  19. Compare foo.txt to bar.txt and return 1 if the files are different.
  20. # AUTHOR
  21. Written by Ferass El Hafidi as part of the fases project.
  22. Source code is at http://git.vitali64.duckdns.org/utils/fases.git.
  23. # COPYRIGHT
  24. Copyright (C) 2023 Ferass El Hafidi