For what it's worth, Daniel Mills on Freenode's #bash channel (e36freak) suggested the following alternative:
awk -v min=1 -v max=10 '{for (f=1; f<=NF; f++) if (+$f >= min && +$f <=
max) {print; found=1; next}} END {exit !found}'
It read text containing numbers on standard input.
Thanks,
Kingsley
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

