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

  1. Newsgroups: comp.infosystems.gopher
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!sol.ctr.columbia.edu!The-Star.honeywell.com!umn.edu!mudhoney!lindner
  3. From: lindner@mudhoney.micro.umn.edu (Paul Lindner)
  4. Subject: Re: How do I avoid indexing the .cache files
  5. Message-ID: <C1C06n.KEM@news2.cis.umn.edu>
  6. Keywords: .cache, waisindexing, searching
  7. Sender: news@news2.cis.umn.edu (Usenet News Administration)
  8. Nntp-Posting-Host: mudhoney.micro.umn.edu
  9. Organization: University of Minnesota, Minneapolis
  10. References: <1jpe1tINNpv5@gaia.ucs.orst.edu> <mtm.727736234@CAMIS>
  11. Date: Sun, 24 Jan 1993 00:03:58 GMT
  12. Lines: 28
  13.  
  14. In <mtm.727736234@CAMIS> mtm@CAMIS.Stanford.EDU (Mike Macgirvin) writes:
  15.  
  16. >hanusj@ava.bcc.orst.edu (Joe Hanus) writes:
  17.  
  18. >>We've waisindexed several directories full of biological data.
  19. >>Gopher searches turn up the .cache files as hits since they contain
  20. >>the search strings.  How do we avoid producing entries in the index
  21. >>for the .caches?
  22.  
  23. >    I usually use the following to index directories and bypass
  24. >dot files:
  25.  
  26. >waisindex -d .index/index "`find . -type f -print | grep -v '/\.'`"
  27.  
  28. >You can modify this as necessary to exclude specific filenames by
  29. >either chaining grep commands or perhaps using "egrep" and its logical
  30. >"or" construct instead.
  31.  
  32. You can also use the -stdin option to waisindex, as follows:
  33.  
  34. find /files.to.be.indexed -type f -print| grep -v '/\.' | grep -v \
  35. '.hqx' |waisindex -stdin
  36.  
  37. --
  38.  | Paul Lindner | lindner@boombox.micro.umn.edu   | Slipping into madness
  39.  |              | Computer & Information Services | is good for the sake
  40.  | Gophermaster | University of Minnesota         | of comparision.
  41. ///// / / /    /////// / / / /  /  /  /   /      //// / / / /  /  /  /   /
  42.