home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.novell
- 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
- From: msjle@uxa.ecn.bgu.edu (Joi L. Ellis)
- Subject: Re: searching WP files on a novell LAN for key wordswords
- Message-ID: <C030Ay.Hz5@uxa.ecn.bgu.edu>
- Organization: Educational Computing Network
- References: l> <C02z9M.C01@ra.nrl.navy.mil>
- Date: Wed, 30 Dec 1992 16:54:33 GMT
- Lines: 35
-
- jc@i5120h.nrl.navy.mil (J. Clark) writes:
-
- Grep will croak on binary files. I never had much luck using my copy of
- Turbo C 1.5's GREP utility to find 'lost' WP documents. I wrote a
- program myself to search through a directory structure matching one or
- more filespecs looking for those that contain a keyword. It works on
- DOS or Novell and isn't limited to directory depth. (It might croak if
- the path is too long, though. It hasn't been an issue for my LAN.) It
- also can be told to do a case insensitive search, and has a small number
- of options to modify what its output looks like. It doesn't care if the
- file is binary or not and doesn't use ascii cr/lf for delimiters.
-
- ASCII -i DOG f:\users\dummy *.wp *.ws *.txt
-
- would do a case insensitive search for the word DOG in user Dummy's
- directory and all subdirectories, looking at files ending with .WP, .WS,
- and .TXT. Any number of filespecs of any standard type can be used, but
- at least one must be present. (Could be *.* if you like.)
-
- If anyone is interested, EMAIL me and I'll send you a uuencoded zip file
- containing the program and source.
-
- >hi all !
- >Thanks for the responses - I'll look in my turbo c stuff for grep.
-
- >I wanted to look for key words in Word Perfect Files, not ascii.
- >(small clarification)
-
- >If anyone has more thoughts I'd appriciate them.
- >Thanks and Happy New Year
-
- --
- Joi Ellis msjle@uxa.ecn.bgu.edu
- Student Residential Programs Western Illinois University
-
-