Y K Patel <address@hidden> wrote:
> I think this is a bug:
>
> When I do a comm -3 on the two attached file, I get all ines from both files
> in
> the output, but if I delete the first line (the only line that is different)
> it
> works fine.
...
> NSC,CONCUNIT,LCONC,A-CREB_1_LC50_NLOGLC50,A-CREB_1_GI50_NLOGGI50,A-CREB_1_TGI50_NLOGTGI50
> 3053,M,-7.00,7.000,8.983,7.230
...
> NSC,CONCUNIT,LCONC,LC50_NLOGLC50,GI50_NLOGGI50,TGI50_NLOGTGI50
> 3053,M,-7.00,7.000,8.983,7.230
Thanks for the report, but that's not a bug.
Your input files are not sorted. In that case,
comm doesn't do what you'd like.
The --help output and manuals do state the restriction.
$ comm --he
Usage: comm [OPTION]... FILE1 FILE2
Compare sorted files FILE1 and FILE2 line by line.
...