home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / unix / question / 15187 < prev    next >
Encoding:
Text File  |  1993-01-05  |  1.5 KB  |  72 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!sscrivan
  3. From: sscrivan@nyx.cs.du.edu (steve scrivano)
  4. Subject: dictionary search
  5. Message-ID: <1993Jan5.223437.16029@mnemosyne.cs.du.edu>
  6. Keywords: dictionary search 
  7. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  8. Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
  9. Date: Tue, 5 Jan 93 22:34:37 GMT
  10. Lines: 60
  11.  
  12. Could someone who has access to a site with a dictionary of 200,000 English 
  13. words or more be so kind as to run this script and e-mail me the "out.file".
  14. If your dictionary is not in "/usr/dict/words" just modify the program to
  15. change the name.  I have been told that several such dictionaries exist, 
  16. however, even I could download them, my machine storage is just too small
  17. and I really don't need a whole dictionary of this size anyway but just the
  18. results of this script.  To save space, you can send the out.file in
  19. compressed/uuencoded format.
  20.  
  21.     </usr/dict/words tr '[A-Z]' '[a-z]' |
  22.     sed '
  23.     /^.$/d
  24.     /^..$/d
  25.     /^...$/d
  26.     /[abdjkmqv-z0-9]/d
  27.     /c.*c/d
  28.     /cc/d
  29.     /e.*.e.*e/d
  30.     /e.*.ee/d
  31.     /ee.*e/d
  32.     /f.*f/d
  33.     /ff/d
  34.     /g.*g/d
  35.     /gg/d
  36.     /h.*h/d
  37.     /hh/d
  38.     /i.*.i.*i/d
  39.     /i.*.ii/d
  40.     /ii.*i/d
  41.     /l.*.l.*l/d
  42.     /l.*.ll/d
  43.     /ll.*l/d
  44.     /n.*.n.*n/d
  45.     /n.*.nn/d
  46.     /nn.*n/d
  47.     /o.*o/d
  48.     /oo/d
  49.     /p.*.p.*p/d
  50.     /p.*.pp/d
  51.     /pp.*p/d
  52.     /r.*r.*r.*r/d
  53.     /rr.*r.*r/d
  54.     /r.*r.*rr/d
  55.     /r.*rr.*r/d
  56.     /s.*.s.*s/d
  57.     /ss.*s/d
  58.     /s.*.ss/d
  59.     /t.*t.*t.*t/d
  60.     /tt.*t.*t/d
  61.     /t.*t.*tt/d
  62.     /t.*tt.*t/d
  63.     /u.*u/d
  64.     /uu/d
  65.     ' > out.file
  66.  
  67.  
  68. Thanks so much for your help!
  69.  
  70. Steve Scrivano
  71. sscrivan@nyx.cs.du.edu
  72.