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.
Code:
x=10
y=100
while read line; do
ln=${#line}
if (( ln > x && ln < y )); then
echo "FOO $line"
else
echo "$line"
fi
done <file.txt