


     BBBBGGGGRRRREEEEPPPP((((1111))))             UUUUNNNNIIIIXXXX 5555....0000 ((((GGGGeeeeoooorrrrggggiiiiaaaa TTTTeeeecccchhhh))))             BBBBGGGGRRRREEEEPPPP((((1111))))



     NNNNAAAAMMMMEEEE
          bgrep - search a file for one or more simple strings

     SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
          bbbbggggrrrreeeepppp [ options ] string-list [ files ]

     DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
          _B_g_r_e_p (Boyer-Moore grep) is program patterned after
          _f_g_r_e_p(1).  It uses the Boyer-Moore string searching
          algorithm, which actually gets faster as the length of the
          pattern to be searched for increases.  _B_g_r_e_p searches for
          plain _s_t_r_i_n_g_s (separated by newlines in the _s_t_r_i_n_g-_l_i_s_t
          argument), not regular expressions in the style of _g_r_e_p.

          The following _o_p_t_i_o_n_s are recognized:

          ----vvvv   All lines but those matching are printed.

          ----xxxx   (Exact) only lines matched in their entirety are
               printed.

          ----cccc   Only a count of the matching lines are printed.  This
               is the total count, across all the input files.

          ----iiii or ----yyyy
               Ignore case when trying to match a line.  Both versions
               of this option are accepted for compatibility with _g_r_e_p
               on different versions of Unix.

          ----llll   Only the names of files with matching lines are printed
               (once), separated by newlines.

          ----nnnn   Each line is preceded by its relative line number
               within the file.

          ----ssss   Silent mode:  No output is generated (except error
               messages).  This is useful for just checking the exit
               status.

          ----eeee _s_t_r_i_n_g
               Same as a simple _s_t_r_i_n_g argument, but useful when the
               string begins with a -.

          ----ffff _f_i_l_e
               The strings to be searched for are read from _f_i_l_e.

          The arguments to the ----eeee and ----ffff options _m_u_s_t be given as
          separate program arguments, i.e. separated by white space.

          _B_g_r_e_p catches conflicting arguments (e.g.  ----vvvv and ----xxxx) and
          complains.




     Page 1                                           (printed 1/1/86)






     BBBBGGGGRRRREEEEPPPP((((1111))))             UUUUNNNNIIIIXXXX 5555....0000 ((((GGGGeeeeoooorrrrggggiiiiaaaa TTTTeeeecccchhhh))))             BBBBGGGGRRRREEEEPPPP((((1111))))



     SSSSEEEEEEEE AAAALLLLSSSSOOOO
          _e_d(1), _s_e_d(1), _g_r_e_p(1), _s_h(1)

     DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
          Exit status 0 if any matches were found, 1 if none, 2 for
          syntax errors on the command, or if any files could not be
          opened (even if matches were found).

     BBBBUUUUGGGGSSSS
          Input lines and the strings to be searched for are limited
          to 256 characters.  Longer input lines are truncated.

          _B_g_r_e_p will not search for any more than 120 different
          strings.

          Uses the <stdio.h> package, which slows it down some.
          Nonetheless, in the usual case, it is 10% to 20% faster than
          _f_g_r_e_p(1).

     AAAAUUUUTTTTHHHHOOOORRRRSSSS
          Roy Mongiovi (gatech!gitpyr!roy) coded the guts of the
          Boyer-Moore algorithm, while Arnold Robbins (gatech!arnold)
          wrote the code to do all the rest of the work, and the man
          page.































     Page 2                                           (printed 1/1/86)



