paste two files according to concordance between columns
A more idiomatic awk
solution would be :
awk 'NR==FNR{id[$1];next}$1 in id' file1 file2 >file3
Output
ID [] p1 p2100 2.5 3.0 2.0102 2.6 4.0 2.5103 2.3 2.0 NA104 2.3 2.0 2.0108 3.2 2.0 4.0109 2.9 1.0 1.5112 3.1 2.5 2.0
References: