home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / infosyst / gopher / 2046 < prev    next >
Encoding:
Text File  |  1993-01-23  |  1.0 KB  |  32 lines

  1. Newsgroups: comp.infosystems.gopher
  2. Path: sparky!uunet!stanford.edu!MED.Stanford.EDU!CAMIS!mtm
  3. From: mtm@CAMIS.Stanford.EDU (Mike Macgirvin)
  4. Subject: Re: How do I avoid indexing the .cache files
  5. Message-ID: <mtm.727736234@CAMIS>
  6. Keywords: .cache, waisindexing, searching
  7. Sender: news@medmail.stanford.edu
  8. Organization: Stanford University, California, USA
  9. References: <1jpe1tINNpv5@gaia.ucs.orst.edu>
  10. Date: Fri, 22 Jan 1993 20:57:14 GMT
  11. Lines: 19
  12.  
  13. hanusj@ava.bcc.orst.edu (Joe Hanus) writes:
  14.  
  15. >We've waisindexed several directories full of biological data.
  16. >Gopher searches turn up the .cache files as hits since they contain
  17. >the search strings.  How do we avoid producing entries in the index
  18. >for the .caches?
  19.  
  20.     I usually use the following to index directories and bypass
  21. dot files:
  22.  
  23. waisindex -d .index/index "`find . -type f -print | grep -v '/\.'`"
  24.  
  25. You can modify this as necessary to exclude specific filenames by
  26. either chaining grep commands or perhaps using "egrep" and its logical
  27. "or" construct instead.
  28.  
  29. mike
  30.  
  31.  
  32.