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

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



--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?

If I'm just inspecting a file I use less and the "/" command to search up 
to the next occurrence of a regular expression. Use the "?" command to 
search backwards. See the man page for less for lots more options.


_______________________________________________
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