I want to know how to grep for the lines that has a number between given range(start and end).
I have tried the following sed command.
sed -n -e '/20030101011442/,/20030101035519/p'
However this requires both start and end to be part of the content being grepped. However in my requirement, the range values may not be part of actual content.
input
1
4
6
8
10
range 2 to 9
output
4
6
8
Since 2 and 9 are not part of the input content. I don't get any output for the grep command.