SED - Print - Print line immediately before a regexp, but not the line containing the regexp
sed
-n
'/regexp/{g;1!p;};h'