如何打印在第n行匹配模式之後的所有行,但忽略所有匹配的前行,包括匹配行,這裏有一個例子:打印所有行下面匹配
row1 something in this row
row2 something in this row
row3 something in this row
row4 don't need to match the whole line, something like java String.contains()
row5 something in this row
row6 something in this row
row7 something in this row
row8 something in this row
row9 something in this row
row10 something in this row
我期待打印行,其中包含行4中的任何位置的行,這是可能的awk或sed,或任何其他方式?
輸出應該是:
row5 something in this row
row6 something in this row
row7 something in this row
row8 something in this row
row9 something in this row
row10 something in this row
我已經看到了類似的問題:
Awk - print next record following matched record
但我不知道如何去適應它適合我的需要。