"Stephan Menezes" <[EMAIL PROTECTED]> wrote:
| i have two simple text files FILE1 and FILE2 with the following
| contents
|
|
| FILE1
| FILE2
|
| ccode/server.c
| ccode/server1.c
| ccode/server1.c
|
|
| now when i COMM it
|
| $ comm -12 FILE1 FILE2
|
| it gives me no output . but when i ran the command COMM on a HP-UX
| machine with the same two files FILE1 and FILE2 , it gave me the correct
| output. (i.e ccode/server1.c )!! which is correct.
Next time, please report which version of comm you're using.
Run this: comm --version
>From your report, I can only guess which lines belong in which file,
but if I do it as follows,
$ echo ccode/server1.c > f1
$ (echo ccode/server.c; echo ccode/server1.c) > f2
I do get the expected output:
$ comm -12 f1 f2
ccode/server1.c
So I can't reproduce the problem.
I'm using comm from this package:
ftp://alpha.gnu.org/gnu/fetish/textutils-2.0.14.tar.gz
Maybe you're using a different version of comm,
or (more likely) maybe you have trailing blanks that make it so
the server1.c lines aren't really the same.
_______________________________________________
Bug-textutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-textutils