home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume10 / enh-spell / learn_word < prev    next >
Text File  |  1990-02-20  |  701b  |  20 lines

  1. #! /bin/csh -f
  2. # Learn the correct spelling of a word or words.
  3. # Creates and maintains files
  4. #    ~/lib/words   ... sorted text of words to suppliment standard list
  5. #    ~/lib/hlista  ... supplimental and standard lists, merged and hashed
  6. #    ~/lib/words.temp  ... scratch file
  7. #    ~/lib/hlista.temp ... scratch file
  8. # I don't know why I need to make a copy of /usr/dict/hlista, but
  9. # that's the only way I found to make it work. .. djones
  10.  
  11. # See also bad_word
  12.  
  13. echo $* | tr ' ' '\012' >> ~/lib/words
  14. sort -u ~/lib/words > ~/lib/words.temp
  15. mv ~/lib/words.temp ~/lib/words
  16. cp /usr/dict/hlista ~/lib/hlista.temp
  17. /usr/bin/spellin ~/lib/hlista.temp < ~/lib/words > ~/lib/hlista
  18. rm ~/lib/hlista.temp
  19.