Please use [code][/code]
tags around your code and data, to preserve formatting and to improve readability. Please do not use quote tags, colors, or other fancy formatting.
It might help if you posted your non-working attempts too, so we can help point out where you're going wrong.
Awk can certainly do it, but I'm not going to bother with it right now. I will post a simple bash solution, however.
while read line; do
if (( ln > x && ln < y )); then
echo "FOO $line"