SED - Insert - Insert a blank line above every line which matches a string
sed
'/apple/{x;p;x;}'
filename