Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site noscvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!qantel!hplabs!sdcrdcf!sdcsvax!noscvax!kemp From: kemp@noscvax.UUCP (Stephen P. Kemp) Newsgroups: net.nlang Subject: Crossword cheater (a useful 4.2bsd alias) Message-ID: <7@noscvax.UUCP> Date: Wed, 4-Sep-85 15:49:44 EDT Article-I.D.: noscvax.7 Posted: Wed Sep 4 15:49:44 1985 Date-Received: Sun, 8-Sep-85 16:19:43 EDT Distribution: net Organization: Naval Ocean Systems Center, San Diego Lines: 46 Here is a useful alias for interrogating the 4.2bsd wordlist stored in /usr/dict/words. It seems to run reasonably quickly, and it allows regular-expressions so you can do masking and use wildcard characters: alias words 'set noglob; egrep .*\!*.* /usr/dict/words; unset noglob' Some examples: To find words with 'func' imbedded (not starting in character position one): % words ..*func defunct eigenfunction malfunction perfunctory % To find words ending in 'q': % words q$ Iraq q % To find five-letter words with third letter 'e' and last letter 'r': % words ^..e.r$ cheer clear freer Greer queer shear sheer smear sneer spear steer swear their % To find five-letter words with capital first letter, with third letter 'e' and fifth letter 'r': % words ^[A-Z].e.r$ Greer %