sed '/start/,/end/d' myfile # include start & end pattern sed -n '1,/start/p;/end/,$p' myfile # only delete between patterns