Help in Search Algorithm

I am tryin to change the sort fields in mainframes to the equivalent in Unix. I have a large datafile of which i extract only the specified fields ... cut them ... write it into another file with a delimiter... and sort based on these fields... then match these fields to those from input file ... problem is while matching i use sequential search which is very expensive... Is there any alternate search? binary search wudnt work bcos it needs a sorted file... any ideas???
:confused:

Pls make sure you read the rules:
(4) Do not 'bump up' questions if they are not answered promptly. No duplicate or cross-posting and do not report a post where your goal is to get an answer more quickly.

Threads merged.