-
- comm - select or reject lines common to two files
-
- comm [ options ] file1 file2
-
- comm reads two files file1 and file2 which should be ordered in the collating sequence of the current locale, and produces three text
columns as output:
- 1
- Lines only in file1.
- 2
- Lines only in file2.
- 3
- Lines in both files.
- If lines in either file are not ordered according to the collating sequence of the current locale, the results are not specified.
- If either file1 or file2 is -, comm uses standard input starting at the current location.
-
- -1
- Suppress the output column of lines unique to file1.
- -2
- Suppress the output column of lines unique to file2.
- -3
- Suppress the output column of lines duplicate in file1 and file2.
-
- 0
- Both files processed successfully.
- >0
- An error occurred.
-
- cmp(1), diff(1)
-
- version
- comm (AT&T Research) 1999-04-28
- author
- Glenn Fowler <gsf@research.att.com>
- author
- David Korn <dgk@research.att.com>
- copyright
- Copyright © 1992-2008 AT&T Intellectual Property
- license
- http://www.opensource.org/licenses/cpl1.0.txt