How can I print all rows after matching pattern in nth row, but ignore all before matched row including the matching row, here is an example :
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
I'm looking to print lines following the line which contains row4 anywhere in that row, is this possible with awk or sed, or any other way?
Output should be :
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
I've seen similar question :
http://stackoverflow.com/questions/1761341/awk-print-next-record-following-matched-record
But I'm not sure how to adapt it to fit my needs.