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

  1. .th COMM I 5/15/74
  2. .sh NAME
  3. comm \*- print lines common to two files
  4. .sh SYNOPSIS
  5. .bd comm
  6. [
  7. .bd \*-
  8. [
  9. .bd 123
  10. ]
  11. ] file1 file2
  12. .sh DESCRIPTION
  13. .it Comm
  14. reads
  15. .it file1
  16. and
  17. .it file2,
  18. which should be in sort,
  19. and produces a three column output: lines only in
  20. .it file1;
  21. lines only in
  22. .it file2;
  23. and lines in both files.
  24. The filename `\*-' means the standard input.
  25. .s3
  26. Flags 1, 2, or 3 suppress printing of the corresponding
  27. column.
  28. Thus
  29. .bd comm
  30. .bd \*-12
  31. prints only the lines common to the two files;
  32. .bd comm
  33. .bd \*-23
  34. prints only lines in the first file but not in the second;
  35. .bd comm
  36. .bd \*-123
  37. is a no-op.
  38. .s3
  39. .sh "SEE ALSO"
  40. cmp (I), diff (I)
  41. .sh BUGS
  42.