Go to the first, previous, next, last section, table of contents.


comm: Compare two sorted files line by line

comm writes to standard output lines that are common, and lines that are unique, to two input files; a file name of `-' means standard input. Synopsis:

comm [option]... file1 file2

The input files must be sorted before comm can be used.

With no options, comm produces three column output. Column one contains lines unique to file1, column two contains lines unique to file2, and column three contains lines common to both files. Columns are separated by TAB.

The options `-1', `-2', and `-3' suppress printing of the corresponding columns. Also see section Common options.


Go to the first, previous, next, last section, table of contents.