home *** CD-ROM | disk | FTP | other *** search
/ minnie.tuhs.org / unixen.tar / unixen / PDP-11 / Trees / V6 / usr / man / man1 / cmp.1 < prev    next >
Encoding:
Text File  |  1975-06-26  |  821 b   |  44 lines

  1. .th CMP I 5/15/74
  2. .sh NAME
  3. cmp \*- compare two files
  4. .sh SYNOPSIS
  5. .bd cmp
  6. [
  7. .bd \*-l
  8. ] [
  9. .bd \*-s
  10. ]
  11. file1 file2
  12. .sh DESCRIPTION
  13. The two files are
  14. compared.
  15. (If
  16. .it file1
  17. is `\*-',
  18. the standard input is used.)
  19. Under default options,
  20. .it cmp
  21. makes no comment if the files are the same;
  22. if they differ, it announces the byte and line number
  23. at which the difference occurred.
  24. If one file is an initial subsequence
  25. of the other, that fact is noted.
  26. Moreover, return code 0 is yielded for identical
  27. files, 1 for different files, and 2 for an
  28. inaccessible or missing argument.
  29. .s3
  30. Options:
  31. .s3
  32. .lp +6 3
  33. \fB\*-l\fR    Print the byte number (decimal) and the
  34. differing bytes (octal) for each difference.
  35. .s3
  36. .lp +6 3
  37. \fB\*-s\fR    Print nothing for differing files;
  38. return codes only.
  39. .i0
  40. .dt
  41. .sh "SEE ALSO"
  42. diff (I), comm (I)
  43. .sh BUGS
  44.