mirror of
https://github.com/sheumann/hush.git
synced 2024-11-18 17:10:36 +00:00
24 lines
401 B
C
24 lines
401 B
C
|
#include "internal.h"
|
||
|
#include <errno.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
const char find_usage[] = "find dir [pattern]\n"
|
||
|
"\n"
|
||
|
"\tFind files.\n";
|
||
|
|
||
|
extern int
|
||
|
find_main(struct FileInfo * i, int argc, char * * argv)
|
||
|
{
|
||
|
i->recursive=1;
|
||
|
i->processDirectoriesAfterTheirContents=1;
|
||
|
return monadic_main(i, argc, argv);
|
||
|
}
|
||
|
|
||
|
extern int
|
||
|
find_fn(const struct FileInfo * i)
|
||
|
{
|
||
|
printf("%s\n",i->source);
|
||
|
|
||
|
return(0);
|
||
|
}
|