Script for pulling words of 4 to 7 characters from a file

Even just advice on where to start would be helpful.

Thank You

egrep  '^.{4,7}\>' infile
egrep -c '^.{4,7}\>' infile

Use /usr/xpg4/bin/egrep on Solaris.

works like a charm. Thank you very much.