[ILUG] users

kevin lyda kevin at suberic.net
Sun Nov 19 22:45:30 GMT 2000


On Sun, Nov 19, 2000 at 11:19:27AM -0800, Joshua Beining wrote:
> [big shell script deleted]
> Hope this helps.
> -----Original Message-----
> From: Deim Agoston
> 
> I've got two files one email address per line in each. I want to
> separate
> them in the way that if user1 has presence in both list take him/her out
> and put into another file. Which tool would be thge best ? The lists has
> 28000 and 29000 addresses.

eek!

sort list1 list2 | uniq -d > list.union

this completes in 5 seconds on a celery 333 with a 45k line
/usr/dict/words passed as list1 and list2.

sort, uniq, awk, cut, and join are great commands to learn.

kevin

-- 
kevin at suberic.net        q: what's the difference between batman & b. gates?
fork()'ed on 37058400    a: when batman fought the penguin, he won.
meatspace place: home                             http://suberic.net/~kevin/
 >> want privacy? www.gnupg.org or www.pgp.com.  encrypted mail preferred <<




More information about the ILUG mailing list