man(1) Manual page archive


     G(1)                                                         G(1)

     NAME
          g, gf, gh - grep source

     SYNOPSIS
          g re [ grep flags ] [ dir ] ...
          gf re [ grep flags ] [ dir ] ...
          gh re [ grep flags ] [ dir ] ...

     DESCRIPTION
          These commands invoke grep with -n and force tagging of out-
          put lines by file name.  Gf modifies the regular expression
          given to only match C functions declared as in style(6).
          Files matching the pattern `$filepat' are searched.  The
          default pattern is `\.[Cbchlmsy]$' for g and gf while the
          default pattern is `\.[h]$' for gh.

          If no dir arguments are given, then only files in the cur-
          rent directory are considered.  Otherwise, each dir argument
          is recursively searched for files matching the given pat-
          tern.

     SOURCE
          /rc/bin/g
          /rc/bin/gf
          /rc/bin/gh

     SEE ALSO
          grep(1), find(1).

     BUGS
          As with all convienent magic, casting runes can have unex-
          pected consequences.