roc has asked for the wisdom of the Perl Monks concerning the following question:
file1.txt barra_id,cusip,tickers CAN1234,00234q,ABH.C CAN3245,0129ab,BCHD CAN342a,02032a,ABB
file2.txt bb_id,cusip,tickers 001E32,0129ab,BCHD 0023R2,00234q,ABH.C 023ER1,02032a,ABB
I want to compare all three files with respect to "cusip" and print tickers which compares "cusip", below is the example output,file3.txt tsx_id,cusip,tickers 91237q,02032a,ABB 92023w,00234q,ABH.C A12311,0129ab,BCHD
output.txt cusip,file1_tickers,file2_tickers,file3_tickers 0129ab,BCHD,BCHD,BCHD 00234q,ABH.C,ABH.C,ABH.C
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: compare:file records
by Narveson (Chaplain) on Feb 27, 2008 at 19:29 UTC |