home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / infosyst / gopher / 1296 < prev    next >
Encoding:
Text File  |  1992-11-20  |  1.6 KB  |  44 lines

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