SyntaxFix
Write A Post
Hire A Developer
Questions
I wasn't really happy with any of the options here. This is what worked for me.
str=$(printf "%s" "first line") str=$(printf "$str\n%s" "another line") str=$(printf "$str\n%s" "and another line")