Get the current line and next 5 lines

From: Larry Doan (doan_larry_at_hotmail.com)
Date: 10/21/03


Date: 21 Oct 2003 03:26:37 -0700

In a shell script or Perl, how do I open a file, find what I'm looking then

Case 1: grab that line + the next 2 lines
Case 2: grab that line + the previous 2 lines?

TIA,
Larry