Grep command, to remove lines containing a specified word

Solution 1:

egrep -v "END|EXPDTA" infile > outfile