home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / GREP203.ZIP / GREP.DOC next >
Text File  |  1993-04-09  |  3KB  |  73 lines

  1. Program:        GREP.EXE
  2.  
  3. Version:        2.02
  4.  
  5. Date:           February 5, 1993
  6.  
  7. Description:    Grep Utility for OS/2 2.0 GA
  8.                 32-bit OS/2 2.0 protected mode, command line program
  9.  
  10. Requirements:   OS/2 2.0 GA Level
  11.  
  12. Instructions:
  13.  
  14. GREP was designed to search from the current path on downwards.  The program 
  15. starts searching for files in the current path and any subdirectories that 
  16. exist.
  17.  
  18. To have GREP start its search from the root directory prepend the \ character
  19. to the filespec:
  20.  
  21. C:\os2\util] grep printf \*.c /s
  22.  
  23. The options to GREP are as follows:
  24.  
  25. grep search-string filespec [-hsicx]
  26.  
  27. search-string       This is any character string which can containing one of
  28.                     the following characters:  * ? . / -
  29.  
  30. filespec            A file specification to use.  Any files matching the
  31.                     file specification will be searched.  This program has
  32.                     been written to search ASCII text files.  Some documents
  33.                     created by word processors may not be searchable (a 
  34.                     future version will fix this).
  35.  
  36. [options]           You can select from the following options
  37.  
  38.     -h          help information
  39.     -s          search subdirctories from the current one on down
  40.     -i          ignore case of the search text 
  41.                 PRINTF PrintF printf all match
  42.     -c          use carriage return/linefeeds for Epsilon users
  43.     -x          excludes the searching of pre-configured binary files
  44.                 (use grep -h for more information).
  45.  
  46. Examples:
  47.  
  48.     - search for word Johnny in all files, searching subdirectories,
  49.       and exclude searching any binary files found.
  50.  
  51. C:\]grep Johnny *.* -sx     
  52.  
  53.     - search for word Johnny in all files ending with ".txt", searching
  54.       subdirectories, ignoring case (JOHNNY, JOhnny & johnny all match)
  55.  
  56. C:\]gerp Johnny *.txt /si
  57.                 
  58. This program is freeware.  All that I ask is that you contact me via
  59. e-mail (Compuserve ID 73467,252; Internet asp@trail.sharpstone.com) and
  60. let me know what you think about it.  Ideas on more freeware utilities you
  61. would like to see are welcome.
  62.  
  63.  
  64.                                             Your author,
  65.  
  66.                                                     Alexandre Polozoff
  67.  
  68. v2.01   corrected problem with subdirectory searching
  69. v2.02   added exclusion option.  added printout of total matches.
  70.         corrected problem with binary file searching
  71.         corrected problem with different drive searching pattern
  72. v2.03   optimizations to the code for speed and size
  73.