home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / sys / novell / 10941 < prev    next >
Encoding:
Text File  |  1992-12-30  |  1.9 KB  |  46 lines

  1. Newsgroups: comp.sys.novell
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!zaphod.mps.ohio-state.edu!sdd.hp.com!ux1.cso.uiuc.edu!mp.cs.niu.edu!news.ecn.bgu.edu!uxa.ecn.bgu.edu!msjle
  3. From: msjle@uxa.ecn.bgu.edu (Joi L. Ellis)
  4. Subject: Re: searching WP files on a novell LAN for key wordswords
  5. Message-ID: <C030Ay.Hz5@uxa.ecn.bgu.edu>
  6. Organization: Educational Computing Network
  7. References: l> <C02z9M.C01@ra.nrl.navy.mil>
  8. Date: Wed, 30 Dec 1992 16:54:33 GMT
  9. Lines: 35
  10.  
  11. jc@i5120h.nrl.navy.mil (J. Clark) writes:
  12.  
  13. Grep will croak on binary files.  I never had much luck using my copy of
  14. Turbo C 1.5's GREP utility to find 'lost' WP documents.  I wrote a
  15. program myself to search through a directory structure matching one or
  16. more filespecs looking for those that contain a keyword.  It works on
  17. DOS or Novell and isn't limited to directory depth.  (It might croak if
  18. the path is too long, though.  It hasn't been an issue for my LAN.)  It
  19. also can be told to do a case insensitive search, and has a small number
  20. of options to modify what its output looks like.  It doesn't care if the
  21. file is binary or not and doesn't use ascii cr/lf for delimiters.
  22.  
  23.     ASCII -i DOG f:\users\dummy *.wp *.ws *.txt
  24.  
  25. would do a case insensitive search for the word DOG in user Dummy's
  26. directory and all subdirectories, looking at files ending with .WP, .WS,
  27. and .TXT.  Any number of filespecs of any standard type can be used, but
  28. at least one must be present.  (Could be *.* if you like.)
  29.  
  30. If anyone is interested, EMAIL me and I'll send you a uuencoded zip file
  31. containing the program and source.
  32.  
  33. >hi all !
  34. >Thanks for the responses -  I'll look in my turbo c stuff for grep.
  35.  
  36. >I wanted to look for key words in Word Perfect Files, not ascii. 
  37. >(small clarification)
  38.  
  39. >If anyone has more thoughts I'd appriciate them.
  40. >Thanks and Happy New Year
  41.  
  42. -- 
  43. Joi Ellis                      msjle@uxa.ecn.bgu.edu
  44. Student Residential Programs   Western Illinois University
  45.  
  46.