> Dan Grossman <[EMAIL PROTECTED]> said:

> Since I'm on Unix, I could just use something like `spell` to spit out
> all the misspelled words in a more or less reasonable amount of time,
> but getting the _correctly_ spelled words seems to be a more difficult
> task (unless there's some command line option to `spell` that I don't 
> know about).

This is not a perl solution, but with spell, sort, uniq and comm you
can solve the problem
.

spell input_file | sort | uniq >mispelled

sort input_file | uniq >all_words

comm -3 all_words mispelled

This produces a list of the correctly spelled words.

-- 
Smoot Carl-Mitchell
Consultant







-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to