I have a bash string that looks like this:
string="This is the first line.
This is the second line"
I would like to convert this into a git commit message, so I need to insert a blank line after the first line to make it the commit title, and the second line the commit body, so that the expansion looks like this:
This is the first line.
This is the second line
What is the simplest way to achieve this in bash?