Say for example the input file in.txt looks like this:
I need to remove all lines after the line matching pattern "fox"
The quick brown fox j