home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!caen!sdd.hp.com!nobody
- From: voorhees@sdd.hp.com (Joe Voorhees)
- Newsgroups: comp.sources.wanted
- Subject: File Finder source wanted
- Date: 6 Nov 1992 18:14:44 GMT
- Organization: Hewlett-Packard, San Diego Division
- Lines: 45
- Distribution: world
- Message-ID: <1decmkINNuc@hpsdlss3.sdd.hp.com>
- NNTP-Posting-Host: hpsdlm14.sdd.hp.com
- Keywords: C, UNIX, HP-UX, file, directory
-
-
- I was wondering if anyone out there on the net has a C program (source code)
- to do the following:
-
- Operator issues command
- to execute program
- |
- V
- Program prompts for search
- string which is equal to
- (hopefully) beginning char-
- acters of a filename(s)
- |
- V
- Program searches for file-
- name(s) beginning with search
- string in (for example):
- ~bob/*/cad_files/
- ~larry/*/cad_files/
- |
- V
- file(s) found? ------no-------> print message:
- | "No files found"
- yes |
- | |
- V |
- print path(s) to |
- file(s) |
- | |
- V |
- exit program <---------------------------
-
- I realize this may be very tedious to write a program like this. I'd do it
- myself but I know *VERY* little about C. The reason I would like something
- like this in C is because of speed; even perl is slow for something like this
- where the wildcard directories are extremely large. Any help with this would be
- greatly appreciated. Platform is HP9000/380TSRX, HP-UX 8.0, X11R4.
-
-
- Thanks-in-advance!
-
- Joe Voorhees
- voorhees@sdd.hp.com
-
-
-