I have the following file, CHANGELOG.rst
:
some text
=========
header
------
* list
* list
header
------
* list
I need to add an entry to this file, right after the file's title, so that the updated file will look as the following:
some text
=========
new header
----------
* new list
header
------
* list
* list
header
------
* list
I add that the
new header
----------
* new list
part is already present in a $CHANGES
variable.
I know this can be done with sed
but I have no idea how to tackle it.