home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / assembler / tasm / GREP / C / helpinfo < prev    next >
Encoding:
Text File  |  1992-03-04  |  1.2 KB  |  40 lines

  1. /*
  2. HelpInfo.C   For grep utility.
  3. R.J.P.    9-5/90
  4. */
  5.  
  6. #include       <stdio.h>
  7. #include       <string.h>
  8. #include       <stdlib.h>
  9. #include       "grep.h"
  10.  
  11. static  char *helptext[] ={
  12. "\n\nThis program searches for a text string in groups of files.",
  13. "It takes the following command line parameters:\n",
  14. "RGREP  ""pattern_to_find"" [path.file] [switches]\n",
  15. "*Note* the pattern must be enclosed in double quotes if it has leading,",
  16. "trailing or embedded white space characters.\n",
  17. "path.file is any AFDS path name, and the file part can contain",
  18. "wildcards. For example, a##src , a* or *",
  19. "If this parameter is omitted, then $.* (a total search) is used.\n",
  20. "Switches are strings starting with either a '-' or a '/' character.",
  21. "-N{number} :  {number} is the max. number of files per directory.",
  22. "                    default is 1000",
  23. "-F  :  Only file names reported, no pattern search done. (default OFF).",
  24. "-E  :  Empty Directories reported  (default OFF).",
  25. "-X  :  Statistics reported after searching (default ON).",
  26. "-A  :  search for both upper & lower case pattern (default OFF).",
  27. "-HELP : this screen.\n\n",
  28. ""
  29. } ;
  30.  
  31.  
  32. void  HelpInformation(void)
  33. {    
  34.   char  **hp  =  helptext ;
  35.   while( **hp )
  36.   fprintf(stderr,"%s\n",*hp++);
  37. }
  38.  
  39.  
  40.