comm 665 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. .TH COMM 1
  2. .CT 1 files
  3. .SH NAME
  4. comm \- select or reject lines common to two sorted files
  5. .SH SYNOPSIS
  6. .B comm
  7. [
  8. .B -123
  9. ]
  10. .I file1 file2
  11. .SH DESCRIPTION
  12. .I Comm
  13. reads
  14. .I file1
  15. and
  16. .IR file2 ,
  17. which are in lexicographical order,
  18. and produces a three column output: lines only in
  19. .IR file1 ;
  20. lines only in
  21. .IR file2 ;
  22. and lines in both files.
  23. The file name
  24. .L -
  25. means the standard input.
  26. .PP
  27. Flag
  28. .LR 1 ,
  29. .LR 2 ,
  30. or
  31. .LR 3
  32. suppresses printing of the corresponding
  33. column.
  34. .SH EXAMPLE
  35. .TP
  36. .EX
  37. comm -12 file1 file2
  38. .EE
  39. .IP
  40. Print lines common to two sorted files.
  41. .SH SOURCE
  42. .B /sys/src/cmd/comm.c
  43. .SH "SEE ALSO"
  44. .IR sort (1),
  45. .IR cmp (1),
  46. .IR diff (1),
  47. .IR uniq (1)