“Grep Nth Line After Pattern” 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

Respostas semelhantes a “Grep Nth Line After Pattern”

Perguntas semelhantes a “Grep Nth Line After Pattern”

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

Procure respostas de código populares por idioma

Procurar outros idiomas de código