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.