find previous line, next line on solaris

Hi,
Unlike the GNU version, grep on SunOS doesn't have the switches -B and -A to fetch me the lines before n after the match and looking for an alternate way.

Any Suggestions?.

-Anduzzi

look into sed1liners
As always, use the Forum's Search capability.