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 output 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 current directory are considered. Otherwise, each dir argument is recursively searched for files matching the given pattern.

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 unexpected consequences.