I currently have the following code:
sed -i "/# My Comment Text/,+2d" /etc/crontab
This removes the 2 lines after this line '# My Comment Text', but I also want it to remove 1 line above this found string. How can I resolve this inside my 1 liner sed command?