I have a file1 that has ranges like this

> 
> 10 20
> 
> 
> 50 60
> 
> 
> 70 100
> 
> 
> 150 170
> 
> 
> ....
> 
> 
> ....
> 
> 
> 

file2

> 
> 15
> 
> 
> 55
> 
> 
> 80
> 
> 
> 160
> 
> 
> ....
> 
> 
> ....
> 
> 
> 

i want to read the ranges in the file1 and look in file2 and get the values between them

final output:

> 
> 15 is the value between 10 and 20
> 
> 
> 55 is the value between 50 and 60
> 
> 
> ....
> 
> 
> ....
> 
> 
>