home *** CD-ROM | disk | FTP | other *** search
- /*
- HelpInfo.C For grep utility.
- R.J.P. 9-5/90
- */
-
- #include <stdio.h>
- #include <string.h>
- #include <stdlib.h>
- #include "grep.h"
-
- static char *helptext[] ={
- "\n\nThis program searches for a text string in groups of files.",
- "It takes the following command line parameters:\n",
- "RGREP ""pattern_to_find"" [path.file] [switches]\n",
- "*Note* the pattern must be enclosed in double quotes if it has leading,",
- "trailing or embedded white space characters.\n",
- "path.file is any AFDS path name, and the file part can contain",
- "wildcards. For example, a##src , a* or *",
- "If this parameter is omitted, then $.* (a total search) is used.\n",
- "Switches are strings starting with either a '-' or a '/' character.",
- "-N{number} : {number} is the max. number of files per directory.",
- " default is 1000",
- "-F : Only file names reported, no pattern search done. (default OFF).",
- "-E : Empty Directories reported (default OFF).",
- "-X : Statistics reported after searching (default ON).",
- "-A : search for both upper & lower case pattern (default OFF).",
- "-HELP : this screen.\n\n",
- ""
- } ;
-
-
- void HelpInformation(void)
- {
- char **hp = helptext ;
- while( **hp )
- fprintf(stderr,"%s\n",*hp++);
- }
-
-
-