home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sources / wanted / 4945 < prev    next >
Encoding:
Internet Message Format  |  1992-11-07  |  1.4 KB

  1. Path: sparky!uunet!caen!sdd.hp.com!nobody
  2. From: voorhees@sdd.hp.com (Joe Voorhees)
  3. Newsgroups: comp.sources.wanted
  4. Subject: File Finder source wanted
  5. Date: 6 Nov 1992 18:14:44 GMT
  6. Organization: Hewlett-Packard, San Diego Division
  7. Lines: 45
  8. Distribution: world
  9. Message-ID: <1decmkINNuc@hpsdlss3.sdd.hp.com>
  10. NNTP-Posting-Host: hpsdlm14.sdd.hp.com
  11. Keywords: C, UNIX, HP-UX, file, directory
  12.  
  13.  
  14. I was wondering if anyone out there on the net has a C program (source code)
  15. to do the following:
  16.  
  17.             Operator issues command
  18.             to execute program
  19.                 |
  20.                 V
  21.             Program prompts for search
  22.             string which is equal to
  23.             (hopefully) beginning char-
  24.             acters of a filename(s)
  25.                 |
  26.                 V
  27.             Program searches for file-
  28.             name(s) beginning with search
  29.             string in (for example):
  30.             ~bob/*/cad_files/
  31.             ~larry/*/cad_files/
  32.                 |
  33.                 V
  34.             file(s) found? ------no-------> print message:
  35.                 |            "No files found"
  36.                 yes                |
  37.                 |                |
  38.                 V                |
  39.             print path(s) to             |
  40.             file(s)                    |
  41.                 |                |
  42.                 V                |
  43.             exit program <---------------------------
  44.  
  45. I realize this may be very tedious to write a program like this. I'd do it
  46. myself but I know *VERY* little about C. The reason I would like something
  47. like this in C is because of speed; even perl is slow for something like this
  48. where the wildcard directories are extremely large. Any help with this would be
  49. greatly appreciated. Platform is HP9000/380TSRX, HP-UX 8.0, X11R4.
  50.  
  51.  
  52. Thanks-in-advance!
  53.  
  54. Joe Voorhees
  55. voorhees@sdd.hp.com
  56.  
  57.  
  58.