[Gllug] problems with comm
Jackson, Harry
HJackson at colt-telecom.com
Mon Feb 18 16:46:35 UTC 2002
> -----Original Message-----
> From: Steve Cobrin [mailto:cobrin at highbury.net]
> Sent: 18 February 2002 16:05
> To: gllug at linux.co.uk
> Subject: [Gllug] problems with comm
>
>
> 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.]
The comm command produces three columns according to the manpage and I think
they overlap. Have you tried
% comm -1 access.passgid access.grpgid
% comm -2 access.passgid access.grpgid
% comm -3 access.passgid access.grpgid
Harry
*************************************************************************************
COLT Telecommunications
Registered in England No. 2452736
Registered Office: Bishopsgate Court, 4 Norton Folgate, London E1 6DQ
Tel. 020 7390 3900
This message is subject to and does not create or vary any contractual
relationship between COLT Telecommunications, its subsidiaries or
affiliates ("COLT") and you. Internet communications are not secure
and therefore COLT does not accept legal responsibility for the
contents of this message. Any view or opinions expressed are those of
the author. The message is intended for the addressee only and its
contents and any attached files are strictly confidential. If you have
received it in error, please telephone the number above. Thank you.
*************************************************************************************
--
Gllug mailing list - Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug
More information about the GLLUG
mailing list