home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 15120 < prev    next >
Encoding:
Text File  |  1993-01-02  |  881 b   |  23 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: searching a file
  5. Message-ID: <1993Jan3.021839.10462@mnemosyne.cs.du.edu>
  6. Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
  7. Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
  8. Date: Sun, 3 Jan 93 02:18:39 GMT
  9. Lines: 12
  10.  
  11. I want to search my /usr/dict/words and pull out lines by the occurrence
  12. of certain letters in the words for example:  all lines that contain
  13. no more than "2 l's" or no more than 3 "r's" or no more than one "n", etc.
  14. How would I accomplish this considering letters can fall in different
  15. places within a word?  A bin shell approach would be preferred.
  16.  
  17. Also, many thanks to those who helped me with the "anagram" idea and
  18. obtaining a larger dictionary to use.
  19.  
  20.  
  21. Steve Scrivano
  22. sscrivan@nyx.cs.du.edu
  23.