Computer Tips - Linux: Find all English words that start with a certain prefix

Date: 2008apr21 Update: 2025jul31 OS: Linux Keywords: letter, letters, begin, games Q. Linux: Find all English words that start with a certain prefix A. If you are using RedHat/Fedora/CentOS make sure you have the "words" package installed:
dnf install words
Then you can do:
grep ^Dw /usr/share/dict/words
To find all the English words that begin with "Dw". (This was a "brain teaser" in my local newspaper today.) Amazingly, Linux has a command that does this: look. Of course, you can use grep to do many other queries.