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