Is there a Unix command to print an entire dictionary?

I am writing a program that uses regular expressions to compare against an entire dictionary in a UNIX shell.

Is there a way so that I can respond to some kind of predefined dictionary and then pipe it to grep? I thought I could use the backend of some spell checker programs?

Or do I just need to repeat the word file? If so, where can I find an English dictionary with one word per line?

+2


source to share


1 answer


Have you tried it cat /usr/share/dict/words

?



http://en.wikipedia.org/wiki/Words_%28Unix%29

+12


source







All Articles