I have a large csv file with these format file 1:
id,ICD,CT
16214497,008.8,1
16227244,401.1,45
27154870,780.79,1
I have another txt file with one column of list of id (header id). file 2:
id
16214497
27154870
I want another file that has only data limited to the list of id in file 2
output file:
id,ICD,CT
16214497,008.8,1
27154870,780.79,1