[CentOS] Grep: show me this line and the next N lines?
Pintér Tibor
tibyke at tibyke.huMon May 30 21:13:56 UTC 2011
- Previous message: [CentOS] Grep: show me this line and the next N lines?
- Next message: [CentOS] Grep: show me this line and the next N lines?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 05/30/2011 11:08 PM, Dotan Cohen wrote: > 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: > [Tag h1] > foreground=#2e5a03 > underline=double > indent=0 > weight=PANGO_WEIGHT_BOLD > scale=2.25 > > 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? > > Thanks! > man grep hint: A t
- Previous message: [CentOS] Grep: show me this line and the next N lines?
- Next message: [CentOS] Grep: show me this line and the next N lines?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list