Post by Steve Carrollawk '{print "\"" $0 "\","}' /usr/share/dict/words
(... or wherever your dictionary lives if you have one)
I expect you want results from a modern version, but it works in Snow
Leopard with that path ("words" is a link pointing to a file named
"web2") to format the list as required:
"A",
"a",
"aa",
"aal",
... etc.
Note the capitalisation which occurs throughout the dictionary as it
containes proper nouns (Christian names, countries, states, etc.). Any
duplication when case-converted doesn't matter (Map.set() creates or
updates). Your dictionary contains similar proper nouns but everything
is lower case. To be consistent, the setup() function should be
modified so I'll post it in the anagramage thread.
BTW, this is the "readme" file:
# $NetBSD: README,v 1.2 1997/03/26 07:14:32 mikel Exp $
# @(#)README 8.1 (Berkeley) 6/5/93
WEB ---- (introduction provided by ***@riacs) -------------------------
Welcome to web2 (Webster's Second International) all 234,936 words worth.
The 1934 copyright has elapsed, according to the supplier. The
supplemental 'web2a' list contains hyphenated terms as well as assorted
noun and adverbial phrases. The wordlist makes a dandy 'grep' victim.
-- James A. Woods {ihnp4,hplabs}!ames!jaw (or ***@riacs)