I want to use grep in the following way:
grep -v "END","EXPDTA" 1bmz_model1.pdb > 1bmz_model.pdbI want the grep command to remove the lines which contain the words "END" and "EXPDTA", but all i get in the output, is a copy of the original file. The command works fine when I try to search and remove with a single word, but not with two words.
11 Answer
egrep -v "END|EXPDTA" infile > outfile 6