;
                                   ZGREP.COM                                  

             Size (recs) CRC   Version    Author/Latest Issue      Disk
              14k (105)  0A0C  1.1        Richard Brewster 7/88    Z3COM13

  1- Syntax/Options  2- ZGREP.HLP                                             

   ZGREP is a version of the UNIX utility GREP which searches for a pattern in
a file or group of files and prints  out the lines  in  which  the  pattern is 
found.   It is  an acronym  for Global Regular Expression Print.   ZGREP  is a 
sibling of ZCOPY and ZERA.  In addition to pattern searching,  ZGREP can copy,
concatenate, list, and line number ASCII files.  It is suggested that ZGREP be
renamed to ZG.COM.  See ZGREP.HLP for details about its operation.
:1

   Syntax:  ZGREP "expression" afn {afn...} {>outfile} {[flags}

        [N      <--  flag to print line numbers
        [Q      <--  flag to query user when searching multiple files
        [V      <--  flag to print non-matching lines
        [F      <--  flag to send formfeed after each file search


ZGREP Expressions:

 \       quotes literal next, e.g. \$ matches '$'
 ^       quotes control character, e.g. ^B
 |       at beginning of expression matches beginning of line
 $       at end of expression matches end of line
 -       after sub-expression matches zero or one occurance
 +       after sub-expression matches one or more occurances
 *       after sub-expression matches zero or more occurances
 _       matches any space or tab
 ?       matches any character
 :a      matches any alphabetic
 :c      matches any control except tab
 :d      matches any digit
 :n      matches any alphanumeric
 :p      matches any punctuation
 [xyz]   matches any of x, y or z
 [!xyz]  matches any except x, y or z
 [a-f]   matches any of [abcdef]
:2 :zgrep
