Last Updated: February 25, 2016
·
493
· rhowardiv

sed: remove matching lines along with each preceding line

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