Your grep one-liner du jour. Count how many words of each length appear in the /usr/share/dict/words dictionary.
— Steve Hayman 💉💉💉💉💉 (@shayman) September 29, 2020
for n in `jot 25`; do printf "%2d letter words: " $n; grep -E "^.{$n}\$" /usr/share/dict/words | wc -l; done