[geeks] Programming question.

Greg A. Woods woods at weird.com
Mon Apr 1 20:27:10 CST 2002


[ On Monday, April 1, 2002 at 19:58:16 (-0600), Bill Bradford wrote: ]
> Subject: [geeks] Programming question.
>
> Okay, so far, I havent been able to figure out a way to do this, so any
> suggestions would be appreciated.
> 
> Compare two lists.  List A, and List B.
> I want to be able to then extract a list of 
> elements of List B that are *not* in List A.

first sort the lists (if they're not already sorted), then:

	comm -2 list-a.sorted list-b.sorted

-- 
								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