I have a file which looks something like this:
--#
--#line1
--#line2
--#line3
--#line4
--#line5
--#line6
--#
line7
line8
line9
.........and so on
Id like to insert a line (2 lines) before the second occurence of "--#" on its own.
Im having trouble with finding the right sed command to do this, can anyone help me?