On Mon, May 30, 2011 at 5:08 PM, Dotan Cohen <dotancohen@xxxxxxxxx> wrote:
Can grep show the matching lines and the next N lines after a match?
I would ideally grep on "[Tag h1]" and have grep display the match and
the next 5 lines so that I see all the content of the h1 section.
Try
grep -A 5 pattern filename
M
_______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos