Last Updated: February 25, 2016
·
511
· rhowardiv

sed: remove matching lines along with each preceding line

sed -n '$!N;/\nPATTERN/!{P;D}'