Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

grep Nth line after pattern

awk 'c&&!--c;/your_pattern/{c=3}' file
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #grep #Nth #line #pattern
ADD COMMENT
Topic
Name
2+9 =