Diff two address lists?

Verde Denim tdldev at gmail.com
Sat Jul 28 16:53:11 UTC 2012


If in the context of an app, put the lists into a pair of tables and write
a simple SQL query to eliminate the dups. The resulting set will be what
you're after. MySQL,sqllite,or any relational DB will work for this.
On Jul 28, 2012 3:47 AM, "Patton" <p.echols at comcast.net> wrote:

> On 07/27/2012 08:11 PM, William Scott Lockwood III wrote:
>
>>
>> On Jul 27, 2012 10:09 PM, "Patton" <p.echols at comcast.net <mailto:
>> p.echols at comcast.net>> 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.
>> >
>> > I've read man diff, and it looks like I should be able to do it, but I
>> cannot figure out how to do it and clearly do not understand some of how it
>> should work.
>> >
>> > I am not married to using diff, anything that will get the result will
>> be great.  Any thoughts??
>> >
>> >
>> > --
>> > Patton
>>
>> I would run both files through sort, which will ensure the order is the
>> same in both files, and then diff -u them both.
>>
>>
>>
>>  the -u parameter seems to say it will output lines of "unified context."
>  Not sure I know how that will help.
>
> --
> Patton
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
> mailman/listinfo/ubuntu-users<https://lists.ubuntu.com/mailman/listinfo/ubuntu-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20120728/4cf0cd7d/attachment.html>


More information about the ubuntu-users mailing list