Research V4 development
authorKen Thompson <ken@research.uucp>
Mon, 5 Nov 1973 23:50:05 +0000 (18:50 -0500)
committerKen Thompson <ken@research.uucp>
Mon, 5 Nov 1973 23:50:05 +0000 (18:50 -0500)
Work on file man/man1/comm.1

Co-Authored-By: Dennis Ritchie <dmr@research.uucp>
Synthesized-from: v4

man/man1/comm.1 [new file with mode: 0644]

diff --git a/man/man1/comm.1 b/man/man1/comm.1
new file mode 100644 (file)
index 0000000..3ce8bb6
--- /dev/null
@@ -0,0 +1,48 @@
+.th COMM I 8/21/73
+.sh NAME
+comm \*- print lines common to two files
+.sh SYNOPSIS
+.bd comm
+[
+.bd \*-
+[
+.bd 123
+]
+] file1 file2
+[
+file3
+]
+.sh DESCRIPTION
+.it Comm
+reads
+.it file1
+and
+.it file2,
+which should be in sort,
+and produces a three column output: lines only in
+.it file1;
+lines only in
+.it file2;
+and lines in both files.
+.s3
+If
+.it file3
+is given, the output will be placed there;
+otherwise it will be written on the standard output.
+.s3
+Flags 1, 2, or 3 suppress printing of the corresponding
+column.
+Thus
+.bd comm
+.bd \*-12
+prints only the lines common to the two files;
+.bd comm
+.bd \*-23
+prints only lines in the first file but not in the second;
+.bd comm
+.bd \*-123
+is a no-op.
+.s3
+.sh "SEE ALSO"
+uniq(\|I\|), proof(\|I\|), cmp(\|I\|)
+.sh BUGS