[Gllug] problems with comm
Steve Cobrin
cobrin at highbury.net
Mon Feb 18 16:05:28 UTC 2002
I'm scratching my head here. Can anybody help?
I have two files containing lists of sorted numbers one per line. I want to
find out what numbers are defined in one file rather than the other. I'm
using "comm", but it *seems* to be giving me the wrong result, in fact it
shouldn't return anything, but it does!
Can anybody help?
[I'm more interested in what I'm misinterpreting from comm, as opposed to a
solution in Perl.]
e.g.
% comm -23 access.passgid access.grpgid
12
13
14
15
25
28
31
44
51
54
56
60
61
62
100
666
65534
% more access.passgid access.grpgid
::::::::::::::
access.passgid
::::::::::::::
0
1
2
3
6
7
12
13
14
15
25
28
31
44
51
54
56
60
61
62
100
666
65534
::::::::::::::
access.grpgid
::::::::::::::
0
1
2
3
5
6
7
8
9
10
12
13
14
15
16
17
25
28
30
31
32
33
40
41
42
43
44
51
54
55
56
57
59
60
61
62
100
666
65534
I'm using SuSE Linux 7.3, LC_COLLATE=POSIX, and my version of comm comes from
GNU textutils-2.0.10-106
-- Steve
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list