I have a file like this:
start of my file
Some lines
#start
other lines
blabla other lines
#end
end of my file
I would like to delete everything between #start
and #end
(#start
and #end
included) and export the result to a file.
Expected result :
start of my file
Some lines
end of my file
I know how to make a selection between delimiters
awk '/#start/,/#end/'
but I can't do the deletion.
edit : I don't agree with the closure of the question. The link given contains an answer with sed
, which is not the purpose of my question since I am asking to do it with awk
. Even if the result is the same, it is not an answer to my question.