[CentOS] Grep: show me this line and the next N lines?

Tue Jun 7 12:40:21 UTC 2011
Jon Detert <jdetert at infinityhealthcare.com>


----- Original Message -----
From: "Dotan Cohen" <dotancohen at gmail.com>
To: "CentOS mailing list" <centos at centos.org>
Sent: Tuesday, June 7, 2011 1:20:20 AM
Subject: Re: [CentOS] Grep: show me this line and the next N lines?

On Tue, Jun 7, 2011 at 05:26, Kenneth Porter <shiva at sewingwitch.com> wrote:
> --On Tuesday, May 31, 2011 1:08 AM +0300 Dotan Cohen <dotancohen at gmail.com>
> wrote:
>
>> Can grep show the matching lines and the next N lines after a match?

grep -A N 

see http://linux.die.net/man/1/grep