The UNIX Operating System

TOP

UP


Ray Seyfarth

ORCA


Computer Science

COST

USM




spell: a crude spell checker


  • Eliminate punctuation using tr or sed
    replacing with \012

  • Convert to lower case with tr

  • Sort the words

  • Use uniq to eliminate duplicates

  • Use comm to select words not matching /usr/dict/words`

  • Optionally you might leave duplicates and count how may times a word is mispelled.


University of Southern Mississippi
Ray.Seyfarth@usm.edu
Updated 15:45 Sep 13, 2006