Grep command

I need a grep command that will look for the word "Heartbeat" or the phrase "The far end". The problem Im having is there are two different strings that will contain the phrase "The far end". The difference is one contains the word LAPS and one contains the word DLEP. I need to be able to pull only the ones that contain the word LAPS.

So I need to grep any string with the word "Heartbeat" or any string that contains the phrase "The far end", but does not contain the word DLEP.

Thanks.

You asked this earlier - minus the 'heartbeat' part. It's always helpful if you know what you need when you come to the table....

grep -e 'The far end' -e 'heartbeat' somefile | grep -v 'DLEP'
 
egrep "The Far end|Heartbeat" Filename | grep -v "DLEP"
 

no need to use multiple greps

awk '/The Far end|Heartbeat/ && !/DLEP/ ' file