<br><br><div class="gmail_quote">On Mon, May 30, 2011 at 5:08 PM, Dotan Cohen <span dir="ltr"><<a href="mailto:dotancohen@gmail.com">dotancohen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Can grep show the matching lines and the next N lines after a match?<br></blockquote><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I would ideally grep on "[Tag h1]" and have grep display the match and<br>
the next 5 lines so that I see all the content of the h1 section.<br></blockquote><div><br></div><div>Try </div><div><br></div><div>grep -A 5 pattern filename </div><div><br></div><div>M</div></div>