Skip to content

Instantly share code, notes, and snippets.

@changs
Created June 22, 2015 09:15
Show Gist options
  • Save changs/f234590f535a45e4c1d1 to your computer and use it in GitHub Desktop.
Save changs/f234590f535a45e4c1d1 to your computer and use it in GitHub Desktop.
for word in $(grep 'a\|e\|i\|o\|u' /usr/share/dict/web2)
do
if [ `echo $word | tr -cd 'aeiou'` == "aeiou" ] && [ `echo $word | tr -cd 'aeiou' | wc -c` == 5 ]; then
echo $word
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment