Last Updated: February 25, 2016
·
513
· rhowardiv

sed: remove matching lines along with each preceding line

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