comm—Compare two sorted files line by line

comm [–123] [—help] [—version] file1 file2

This manual page documents the GNU version of comm. comm prints lines that are common, and lines that are unique, to two input files. The two files must be sorted before comm can be used. The filename – means the standard input.

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.

The options –1, –2, and –3 suppress printing of the corresponding columns.

—help Print a usage message and exit with a nonzero status.
—version Print version information on standard output then exit.

If You Like What We Do Here On LinuxConcept, You Should Consider:

Stay Connected to: Twitter | Facebook

Subscribe to our email updates: Sign Up Now


We are thankful for your support.

Follow me