Eric Andersen | cc8ed39 | 1999-10-05 16:24:54 +0000 | [diff] [blame^] | 1 | #include "internal.h" |
2 | #include <errno.h> | ||||
3 | #include <stdio.h> | ||||
4 | |||||
5 | const char find_usage[] = "find dir [pattern]\n" | ||||
6 | "\n" | ||||
7 | "\tFind files.\n"; | ||||
8 | |||||
9 | extern int | ||||
10 | find_main(struct FileInfo * i, int argc, char * * argv) | ||||
11 | { | ||||
12 | i->recursive=1; | ||||
13 | i->processDirectoriesAfterTheirContents=1; | ||||
14 | return monadic_main(i, argc, argv); | ||||
15 | } | ||||
16 | |||||
17 | extern int | ||||
18 | find_fn(const struct FileInfo * i) | ||||
19 | { | ||||
20 | printf("%s\n",i->source); | ||||
21 | |||||
22 | return(0); | ||||
23 | } |