I have two files. First one looks like this:
| A | B | C | D | ... |
|---|---|---|---|---|
| 0.002 | 0.25 | 1.25 | 2.45 | 3.54 |
| 0.15 | 0.45 | 2.35 | 0.48 | 4.57 |
| ... | ... | ... | ... | ... |
and the second one :
| letter | ID |
|---|---|
| A | 12 |
| T | 12 |
| C | 23 |
| D, J | 15 |
| K | 45 |
| M, A, C | 35 |
If one of column name of first file does not appear in the second file then remove it from second file, like this:
| letter | ID |
|---|---|
| A | 12 |
| C | 23 |
| D | 15 |
| A, C | 35 |
Thanks.