home *** CD-ROM | disk | FTP | other *** search
- COMMAND: FGREP DOCUMENTATION : On-line
-
- FUNCTION: Searches files for particular text patterns and dsiplays lines
- containing matching paterrns.
-
- FORMAT: FGREP [-options] [pattern] [files or directories]
-
- TYPE: Public domain software.
-
- REMARKS: Options may be:
-
- r to recursively search sub-directories of directories specified
- in the list of files or directories. The default is to search only
- those files specified in the list.
- i to ignore upper/lower case when matching the specified pattern.
- l to print line numbers of matching text.
- n to only print the names of files with matching text.
- v to reverse the test, so that only those lines without matching text
- are displayed.
- c to only print a count of how many lines have matching text.
- ^ to treat the ^ character in the specified pattern as a blank, since
- command line parameters are separated by blanks and pattern cannot
- contain blanks.
-
- The pattern arguement is the text string to search for, and it may
- contain no blanks and may not start with -.
- The files or directories arguement is a list of filespecs, which may
- contain wildcard characters, and/or a list of path names. Matching
- files are searched for matching patterns and the results are
- displayed according to which options are selected.