Diff two address lists?

Jonesy gmane at jonz.net
Sat Jul 28 17:11:16 UTC 2012


On Fri, 27 Jul 2012 20:08:22 -0700, Patton wrote:
> I have a need to compare two lists of email addresses.  Each one is a 
> text file with address per line.  What I need to output is a list of 
> email addresses that are only in list B, I do not want the addresses 
> that are in both or are only in A.

 _IF_ (big "if") the two lists are pure email addys with no further 
embellishments/contents, something viz:

    grep -v -f "B"_file "A"_file

Or, maybe I'm rong.  Haven't had my coffee yet....

Jonesy
-- 
  Marvin L Jones    | jonz          | W3DHJ  | linux
   38.24N  104.55W  |  @ config.com | Jonesy |  OS/2
    * Killfiling google & XXXXbanter.com: jonz.net/ng.htm





More information about the ubuntu-users mailing list