The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 07-29-2008
ukatru ukatru is offline
Registered User
  
 

Join Date: Jul 2008
Posts: 38
Lookup on a file

Hi,

I have the following requirement.

I have one lookup file which contains 15 columns and 7000 records.

Ex:

123,MEDICA,134,145,1178,123,678,345,2345,HP,COL,K12,SR,OX,78919

I have input file which contains 14 columns and 20 million records.Some times the record count is more than 20 million.

I need to match the first 14 columns with 14 columns in the lookup file and if matches i need the 15 the column.

Can any one please help me and give me some code which will process very effeciently.
I need to finish this process less than 20 minutes.

Can any one please suggest me how can we acheive this using ksh or even perl script is also good.

Thanks