comm — Select or Reject Lines Common to Two Files
Synopsis
/usr/bin/comm [-123] file1 file2
Description
Use the comm command to compare lines common to the sorted files or to display lines unique to each file. comm reads file1 and file2 , which should be ordered in the current collating sequence, and produces three text columns as output:
Lines only in file1 .
Lines only in file2 .
Lines in both files.
If the input files were ordered according to the collating sequence of the current locale, the lines written are in the collating sequence of the original lines. If not, the results are unspecified.
Options
-1 | Suppress the output column of lines unique to file1 . |
-2 | Suppress the output column of lines unique to file2 . |
-3 | Suppress the output ... |
Get Solaris™ 7 Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.