#include #include #include #include /* Compiled with Lattice v4.0 */ void main(argc, argv) int argc; char **argv; { char *filestring; char *commandstring; int error; int i; struct FILEINFO info; int attr=0; /* One could really look more at the arguments more here... */ if (argc<3) { printf("Usage is %ls \n", argv[0]); exit(0); } /* Get filepattern and command to apply */ filestring=strdup(argv[1]); commandstring=strdup(argv[2]); /* Make sure command gets all the supplied args.. */ for(i=3;i