comm.1 (621B)
1 .Dd January 18, 2015 2 .Dt COMM 1 sbase\-VERSION 3 .Sh NAME 4 .Nm comm 5 .Nd select or reject lines common to two files 6 .Sh SYNOPSIS 7 .Nm comm 8 .Op Fl 123 9 .Ar file1 10 .Ar file2 11 .Sh DESCRIPTION 12 .Nm 13 reads 14 .Ar file1 15 and 16 .Ar file2, 17 which should both be sorted lexically, and writes three text columns 18 to stdout: 19 .Bl -tag -width Ds 20 .It 1 21 Lines only in 22 .Ar file1 . 23 .It 2 24 Lines only in 25 .Ar file2 . 26 .It 3 27 Common lines. 28 .El 29 .Sh OPTIONS 30 .Bl -tag -width Ds 31 .It Fl 1 | Fl 2 | Fl 3 32 Suppress column 1 | 2 | 3 33 .El 34 .Sh SEE ALSO 35 .Xr cmp 1 , 36 .Xr sort 1 , 37 .Xr uniq 1 38 .Sh STANDARDS 39 The 40 .Nm 41 utility is compliant with the 42 .St -p1003.1-2008 43 specification.