home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.questions
- Path: sparky!uunet!mnemosyne.cs.du.edu!nyx!sscrivan
- From: sscrivan@nyx.cs.du.edu (steve scrivano)
- Subject: searching a file
- Message-ID: <1993Jan3.021839.10462@mnemosyne.cs.du.edu>
- Sender: usenet@mnemosyne.cs.du.edu (netnews admin account)
- Organization: Nyx, Public Access Unix @ U. of Denver Math/CS dept.
- Date: Sun, 3 Jan 93 02:18:39 GMT
- Lines: 12
-
- I want to search my /usr/dict/words and pull out lines by the occurrence
- of certain letters in the words for example: all lines that contain
- no more than "2 l's" or no more than 3 "r's" or no more than one "n", etc.
- How would I accomplish this considering letters can fall in different
- places within a word? A bin shell approach would be preferred.
-
- Also, many thanks to those who helped me with the "anagram" idea and
- obtaining a larger dictionary to use.
-
-
- Steve Scrivano
- sscrivan@nyx.cs.du.edu
-