Horje
grep nth line after match Code Example
grep nth line after match
awk 'c&&!--c;/pattern/{c=N}' file
grep Nth line after pattern
awk 'c&&!--c;/your_pattern/{c=3}' file
grep third line after match
Include -A flag to add lines after match
grep match -A 3	#display match line and 3 after lines




Shell

Related
start apache service Code Example start apache service Code Example
grep nth line Code Example grep nth line Code Example
bash replace with new line Code Example bash replace with new line Code Example
vim replace with new line Code Example vim replace with new line Code Example
bash replace character with new line Code Example bash replace character with new line Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10