home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
os2
/
grep202.zip
/
GREP.DOC
< prev
next >
Wrap
Text File
|
1993-02-05
|
3KB
|
73 lines
Program: GREP.EXE
Version: 2.02
Date: February 5, 1993
Description: Grep Utility for OS/2 2.0 GA
32-bit OS/2 2.0 protected mode, command line program
Requirements: OS/2 2.0 GA Level
Instructions:
GREP was designed to search from the current path on downwards. The program
starts searching for files in the current path and any subdirectories that
exist.
To have GREP start its search from the root directory prepend the \ character
to the filespec:
C:\os2\util] grep printf \*.c /s
The options to GREP are as follows:
grep search-string filespec [-hsicx]
search-string This is any character string which can containing one of
the following characters: * ? . / -
filespec A file specification to use. Any files matching the
file specification will be searched. This program has
been written to search ASCII text files. Some documents
created by word processors may not be searchable (a
future version will fix this).
[options] You can select from the following options
-h help information
-s search subdirctories from the current one on down
-i ignore case of the search text
PRINTF PrintF printf all match
-c use carriage return/linefeeds for Epsilon users
-x excludes the searching of pre-configured binary files
(use grep -h for more information).
Examples:
- search for word Johnny in all files, searching subdirectories,
and exclude searching any binary files found.
C:\]grep Johnny *.* -sx
- search for word Johnny in all files ending with ".txt", searching
subdirectories, ignoring case (JOHNNY, JOhnny & johnny all match)
C:\]gerp Johnny *.txt /si
This program is freeware. All that I ask is that you contact me via
e-mail (Compuserve ID 73467,252; Internet asp@trail.sharpstone.com) and
let me know what you think about it. Ideas on more freeware utilities you
would like to see are welcome.
Your author,
Alexandre Polozoff
v2.01 corrected problem with subdirectory searching
v2.02 added exclusion option. added printout of total matches.
corrected problem with binary file searching
corrected problem with different drive searching pattern