Re: How to compare two text files

2010-05-07 Thread W.H. Kalpa Pathum
On Fri, May 7, 2010 at 1:49 AM, Bruno Wolff III wrote: > On Thu, May 06, 2010 at 18:27:12 +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 a

Re: How to compare two text files

2010-05-06 Thread Bruno Wolff III
On Thu, May 06, 2010 at 18:27:12 +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 > (ther

Re: How to compare two text files [SOLVED]

2010-05-06 Thread W.H. Kalpa Pathum
On Thu, May 6, 2010 at 8:07 PM, g wrote: > W.H. Kalpa Pathum wrote: > > >> Thanks for all your help > > welcome. > >> The way of NoSpaz with grep worked fine. > > great. > >> g's method gave me a unique list but it also had rows from file B. I >> want them excluded. > > if you had rows from file

Re: How to compare two text files [SOLVED]

2010-05-06 Thread g
W.H. Kalpa Pathum wrote: > Thanks for all your help welcome. > The way of NoSpaz with grep worked fine. great. > g's method gave me a unique list but it also had rows from file B. I > want them excluded. if you had rows from file b, then those are rows that where not in file a. -- peace

Re: How to compare two text files [SOLVED]

2010-05-06 Thread W.H. Kalpa Pathum
On Thu, May 6, 2010 at 7:50 PM, Karl-Olov Serrander wrote: > On Thu, 6 May 2010, W.H. Kalpa Pathum wrote: > >> On Thu, May 6, 2010 at 6:53 PM, g wrote: >> >> Thanks for all your help >> >> The way of NoSpaz with grep worked fine. >> g's method gave me a unique list but it also had rows from file

Re: How to compare two text files [SOLVED]

2010-05-06 Thread Karl-Olov Serrander
On Thu, 6 May 2010, W.H. Kalpa Pathum wrote: > On Thu, May 6, 2010 at 6:53 PM, g wrote: > > Thanks for all your help > > The way of NoSpaz with grep worked fine. > g's method gave me a unique list but it also had rows from file B. I > want them excluded. > > Anyway thanks for all. man comm rega

Re: How to compare two text files [SOLVED]

2010-05-06 Thread W.H. Kalpa Pathum
On Thu, May 6, 2010 at 6:53 PM, g wrote: > W.H. Kalpa Pathum wrote: > > >> Any idea on how to accomplish this? > > > cat file.a > file.c > cat file.b >> file.c > sort file.c > file.d > uniq -u file.d > file.e > > > -- > > peace out. > > tc,hago. > > g > . > > > in a free world without fences

Re: How to compare two text files

2010-05-06 Thread g
W.H. Kalpa Pathum wrote: > Any idea on how to accomplish this? cat file.a > file.c cat file.b >> file.c sort file.c > file.d uniq -u file.d > file.e -- peace out. tc,hago. g . in a free world without fences, who needs gates. ** help microsoft stamp out piracy - give linux to a frien

Re: How to compare two text files

2010-05-06 Thread NoSpaze
Am Donnerstag, den 06.05.2010, 18:27 +0530 schrieb W.H. Kalpa Pathum: > 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 som

Re: How to compare two text files

2010-05-06 Thread Kwan Lowe
On Thu, May 6, 2010 at 8:57 AM, 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 mo

Re: How to compare two text files

2010-05-06 Thread Jussi Lehtola
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

Re: How to compare two text files

2010-05-06 Thread W.H. Kalpa Pathum
On Thu, May 6, 2010 at 6:32 PM, Terry Polzin 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 on

Re: How to compare two text files

2010-05-06 Thread Terry Polzin
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

How to compare two text files

2010-05-06 Thread W.H. Kalpa Pathum
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 o