home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.infosystems.gopher
- Path: sparky!uunet!zaphod.mps.ohio-state.edu!caen!destroyer!cs.ubc.ca!unixg.ubc.ca!kakwa.ucs.ualberta.ca!namao!jboeske
- From: jboeske@namao.uucp (John Boeske)
- Subject: Re: Waisindex indexing the index.* files
- Message-ID: <jboeske.722276790@namao>
- Sender: news@kakwa.ucs.ualberta.ca
- Nntp-Posting-Host: namao.ucs.ualberta.ca
- Organization: University Of Alberta, Edmonton Canada
- References: <92321.171224RBF@psuvm.psu.edu> <1992Nov17.064002.9696@news2.cis.umn.edu> <1992Nov18.182623.2632@msuinfo.cl.msu.edu>
- Date: Fri, 20 Nov 1992 16:26:30 GMT
- Lines: 31
-
- boone@convex.cl.msu.edu (Dennis Boone) writes:
-
- >In article <1992Nov17.064002.9696@news2.cis.umn.edu> lindner@mudhoney.micro.umn.edu (Paul Lindner) writes:
- >>Okay, here's whatcha do:
- >>
- >>Say you have a directory /home/foo, you store your indexes in
- >>/home/foo/.index.
- >> ...
- >>waisindex -r /home/foo/*
- >>
- >>Most shells don't expand dot files when you give it a asterick to chew
- >>on.
-
- >I recently discovered one of my indices wasn't rebuilding because the *
- >expanded to over-many filenames. You'd think WAIS would be smart enough
- >not to index its own files. Lose lose.
-
- Or here's what else you can do when you're in /home/foo/.index
-
- find /home/foo -name .\?\* -prune \
- -o -type f -print \
- -o ! -name dev ! -name bin ! -name etc ! -name usr \
- -o - prune \
- | waisindex -d $user -stdin
-
- Don't look at anything starting with .
- Print all file names to waisindex
- Recurse into directories not called dev, bin, etc, or usr
- Don't recurse
-
- John Boeske jboeske@namao.ucs.ualberta.ca
-