I have two ascii tables in text files containing information about stars, one of which with the headers
| ID | TIME | MAGNITUDE | ERROR |
and the other has the headers
| ID | CLASS |
and I want to add the CLASS column to the first text file. The main problem here is that the first text file has got many rows for each star (I.E. Star 3_6588 has got 20 entries in table a for different times) whereas the second text file has only one entry for each ID (as Star 3_6588 is always a Class I).
What I need to do is to add the |CLASS| column to the first table where every instance of a specific ID has the required class. The text file has over 14 million rows in it which is why I can't just do this manually.