How to remove a specific line matching pattern1 and pattern2 ?

Hi,
I have a file like below:

.
.
.
.
Jack is going home
Jack is going to school
Jack is sleeping
Jack is eating dinner
John is going home
John is eating breakfast
.
.
.

The specific line is:
Jack is going home

As you can see, pattern1=Jack, pattern2=home
So, how can I remove this line matching the pattern1 and the pattern2 ?

Thanks in advance...
salih

grep -v "Jack.*home" infile
1 Like

Thank you very much verdepollo, it worked :b: