I have a file which contains following content,
Hello world Unix!!
Its bright world
Current time is HH:mm:ss
Next action plan is item #3
End of task.
Thank you.
Hello world Linux!!
All actions completed.
End of Activity.
Thanks.
I would like to selectively delete all the lines that contain keyword, "world" and also all the subsequent lines until a line with specific set of keywords (Example, "Activity" or "task") are encountered.
Desired output :
End of task.
Thank you.
End of Activity.
Thanks.