sbase

suckless unix tools
git clone git://git.suckless.org/sbase
Log | Files | Refs | README | LICENSE

comm.1 (605B)


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