I have two files in the following format:
File A
4
5
8
9
File B
1 text
2 text1
3 text2
4 text3
5 text4
6 text5
7 text6
8 text7
9 text8
What I want to have for my output is just the following (the second field in File B if it corresponds to the line number in File A):
test3
test4
text7
text8