comm - select or reject lines common to two files
comm [ options ] file1 file2
reads two files file1
which should be ordered in the collating sequence of the current locale,
and produces three text columns as output:
- Lines only in file1.
- Lines only in file2.
- 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.
- Suppress the output column of lines unique to file1.
- Suppress the output column of lines unique to file2.
- Suppress the output column of lines duplicate in file1 and file2.
- Both files processed successfully.
An error occurred.