Thanks for your answers, I'm a bit confused about the output, let me put an example please:
I have the two-columns file, from where I need to extract the info stored in the second column based on the other file (explained afterhere). The 2-columns has 3438 records:
basically, the fileB should match the first column of fileA and then output the second column of fileA. But here is the part I don't know how to do it, it should be row-by-row, or in order based on fileB, so for instance, at the end I would get something like:
1.78
1.78
1.78
1.78
1.78
...
thinking on the first part of fileB for instance, from 3462.91 to 3452.03 (in red above). I think on this like a row-by-row scanning. So at the end, I should have an output with 15287 records like fileB.