This question already has an answer here:
How can I delete lines in a file until it matches a string line pattern?
cat test.txt The first line The second line The third line The fourth line pen test/ut The sixth line The seventh line
I would like to use shell/python script to remove all the lines from the above file until it matches the file string pattern "pen test"
Expected output: The file "test.txt" should have only these lines after removing above lines:
The sixth line The seventh line