Re: How to compare two text files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, May 6, 2010 at 6:32 PM, Terry Polzin <foxec208@xxxxxxxxxx> wrote:
> On Thu, 2010-05-06 at 18:27 +0530, W.H. Kalpa Pathum wrote:
>> hi,
>>
>> I've got two text files containing email addresses one at a row. The
>> number of rows in one file is different from the number of the other
>> file. email addresses in one file is already there in the other file
>> (there are some more also). What I want to do is extract the list
>> which is not in the other file.
>>
>> elaboration
>>
>> File A has 100 email addresses and file B has 15 email addresses. 15
>> email addresses in file B are already there in file A. I want to
>> extract the 85 mails (excluding the 15 from file B) from file A.
>>
>> Any idea on how to accomplish this?
> diff -b file_a file_b
nope it didn't help. it lists all rows in file A and then all rows in
file B. What I want is to list rows in File A excluding the rows
similar to those are in File B
>
> --
> users mailing list
> users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
>



-- 

W.H.Kalpa Pathum
...............................................
http://kalpapathum.blogspot.com
http://thiraya.wordpress.com
http://www.twitter.com/callkalpa
...............................................
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux