Re: Grep: show me this line and the next N lines?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




----- Original Message -----
From: "Dotan Cohen" <dotancohen@xxxxxxxxx>
To: "CentOS mailing list" <centos@xxxxxxxxxx>
Sent: Tuesday, June 7, 2011 1:20:20 AM
Subject: Re:  Grep: show me this line and the next N lines?

On Tue, Jun 7, 2011 at 05:26, Kenneth Porter <shiva@xxxxxxxxxxxxxxx> wrote:
> --On Tuesday, May 31, 2011 1:08 AM +0300 Dotan Cohen <dotancohen@xxxxxxxxx>
> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux