Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

grep nth line after match

awk 'c&&!--c;/pattern/{c=N}' file
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #grep #nth #line #match
ADD COMMENT
Topic
Name
1+4 =