Crossword helper

From MK Wiki EN
Revision as of 12:48, 24 February 2021 by MkWikiEnSysOp (talk | contribs) (Created page with "== bash == awk 'length==6' /usr/share/dict/american-english | grep "^[a-zA-Z]a[a-z][a-z][a-z]t" Find all words in the American English dictionary with a length of 6 charach...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

bash

awk 'length==6' /usr/share/dict/american-english | grep "^[a-zA-Z]a[a-z][a-z][a-z]t"

Find all words in the American English dictionary with a length of 6 charachter that start with either a lower or upper case character, an "a" in the second position, three lower case characters and a "t" at the end. I'm quite sure the regular expression could be optimized (the redundant [a-z] bothers me).