[SunHELP] grep

Thomas Cameron thomas.cameron at camerontech.com
Thu Jul 31 11:43:08 CDT 2003


GNU grep does this with the -A and -C arguments.  Maybe install GNU
grep?

Thomas

On Thu, 2003-07-31 at 11:15, Bret Adams wrote:
> Hey Everybody:
> 
> I was trying to find a way to grep a pattern in a file and then print out 
> that line and the two lines preceding the match.
> I already manned the grep, egrep and fgrep man pages and nothing was listed 
> that fit the bill.  Maybe there is a more robust version
> of grep out there.  Any pointers would be appreciated.  Thanks in advance.
> 
> Bret
> _______________________________________________
> SunHELP maillist  -  SunHELP at sunhelp.org
> http://www.sunhelp.org/mailman/listinfo/sunhelp



More information about the SunHELP mailing list