extract words with even numbr of letters

Hello All

I need to extract words which are of even number of letters and not greater than 10.

Any help??

Thanks,
Manish

Show us your input and you expected output.

Perhaps something like

tr " " "\n" < file.txt | sed -n -e "/^[[:alpha:]]\{2\}$/p;/^[[:alpha:]]\{4\}$/p;/^[[:alpha:]]\{6\}$/p;/^[[:alpha:]]\{8\}$/p"

hacky solution:

 egrep "^..$|^\(..\)$|^......$|^........$" file