[geeks] Programming question.

Greg A. Woods woods at weird.com
Mon Apr 1 21:52:34 CST 2002


[ On Monday, April 1, 2002 at 20:50:12 (-0600), Bill Bradford wrote: ]
> Subject: Re: [geeks] Programming question.
>
> On Mon, Apr 01, 2002 at 09:27:10PM -0500, Greg A. Woods wrote:
> > first sort the lists (if they're not already sorted), then:
> > 	comm -2 list-a.sorted list-b.sorted

OOPS!!!!  Major typo/thinko above!  SORRY!

That should be:

	comm -13 list-a.sorted list-b.sorted

You only want column 2 -- the lines only in the second file, so you have
to supress the other two columns of output.....


> Woah.  I didnt even know "comm" existed.

Welcome to Unix!   (that one's been around since the very beginning -- a
tool every toolkit should have!)
 
which is why that usage syntax is so baroque, I guess.....


> This looks perfect.  so far.

Once you learn its 123's (which obviously I've never done!  :-)), it's
quite a powerful little wonder!

-- 
								Greg A. Woods

+1 416 218-0098;  <gwoods at acm.org>;  <g.a.woods at ieee.org>;  <woods at robohack.ca>
Planix, Inc. <woods at planix.com>; VE3TCP; Secrets of the Weird <woods at weird.com>



More information about the geeks mailing list