I have a large text file with over 75 Million records. Each record consists of string tokens (attributes) and between each token there is a tab character. This is an example of two records:
43 ao489fer809 abcdefghikl 1.41 0 81 ijfij03iuff abcdefghikl e89rt904i3 094utofgimf 0.13 1
So each record consists of 5 tokens (notice that the third token includes the space character).
Now let's suppose I have the string "abcdefghikl" -let's call it the key-. I am interested at the third token. So I want to compare the key to the third token and if the token is exactly the key (and doesn't just contain the key as my second record), to write the winning record to a new file. Any grep ideas?