[CentOS] Grep: show me this line and the next N lines?
dotancohen at gmail.com
Mon May 30 21:08:37 UTC 2011
Can grep show the matching lines and the next N lines after a match?
For instance, I have a config file wit hthe following text:
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.
Can this be done?
More information about the CentOS