How can I match the first column from file1 according to the numbers in the second column to the file 2?
File file1
k002 25
k004 54
k003 23
File file2
25 h
23 j
54 hg
Desired output
k002 25 h
k003 23 j
k004 54 hg
I have no idea how to do that, and I did not find similar questions.
awk 'matching {print ... $1, $2}' file1 file2 > file_des