“Grep Nth Line After Match” Respostas de código

Grep Nth Line After Match

awk 'c&&!--c;/pattern/{c=N}' file
Shiny Stag

Grep Nth Line After Pattern

awk 'c&&!--c;/your_pattern/{c=3}' file
Hutch Polecat

terceira linha Grep após partida

Include -A flag to add lines after match
grep match -A 3	#display match line and 3 after lines
Armandres

Respostas semelhantes a “Grep Nth Line After Match”

Perguntas semelhantes a “Grep Nth Line After Match”

Mais respostas relacionadas para “Grep Nth Line After Match” em Shell/Bash

Procure respostas de código populares por idioma

Procurar outros idiomas de código