Click to See Complete Forum and Search --> : sorting stuff


cpanstett
02-26-2001, 09:18 PM
I'm trying to get 2 lists of email addresses organized-- compare them and remove the duplicates. I usually use MS Excel and run an advanced filter, but I've run up against the dreaded 65K row limit.

I've tried the following:

cat list1 list2 | sort | uniq -i -u > list3

Unfortunately list3 ends up as only the addresses that appear once in either list. Any item with a duplicate is ignored.

Any ideas on how to send one of each address to list3

Thanks!
cpanstett@yahoo.com

cpanstett
02-26-2001, 10:47 PM
Figured it out by running 'info sort' and scrolling a while.

uniq is what causes dupes be completely ignored. The following accomplished what I was looking for:


cat list1 list2 | sort -i -u >