Comment

Alex

You might be interested in the -A, -B and -C options to grep. These will place matching lines in a specified amount of context.