<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.32.2">
</HEAD>
<BODY>
So, I need to look in about a bazillion source files for variants of<BR>
<BLOCKQUOTE>
    DEFINE BUFFER SNORT FOR ALTPLAN.<BR>
    Define Buffer Blech for AltPlan.<BR>
    Def&nbsp;&nbsp;&nbsp; Buff&nbsp;&nbsp; Blurf for AltPlan.<BR>
    Def Buff Blurf for AltPlan.<BR>
    def buff blurf for altplan.<BR>
    define buff blurf for altplan.<BR>
    define&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; buffer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blorf for altplan.<BR>
    define&nbsp; new shared buffer&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; blorf for altplan.<BR>
    <BR>
</BLOCKQUOTE>
And grap 3 lines before, 10 lines afterwards, source file and&nbsp; line#. <BR>
<BR>
I was thinking this would to it: <BR>
<BLOCKQUOTE>
    grep -i -B 3 -A 10 -H -n -r -f buf-grep.inp * &gt; buf.grep.out<BR>
    <BR>
</BLOCKQUOTE>
Where buf-grep.inp was<BR>
<BR>
<BLOCKQUOTE>
    def*buff*for*ALTPLAN<BR>
    <BR>
    def*buff*for*ARM<BR>
    <BR>
    def*buff*for*ARMNOTE<BR>
    <BR>
</BLOCKQUOTE>
Alas it is not thus, and the more I study the reg exp notes the more I see there error of my ways, and the less I see an expression that would work. <BR>
<BR>
Regards, <BR>
<BR>
<BR>
Neal 
</BODY>
</HTML>