How to echo multi lined strings in a Bourne shell [duplicate]
问题 This question already has answers here : When to wrap quotes around a shell variable? (5 answers) Closed 4 years ago . I want to create some scripts for filling some templates and inserting them into my project folder. I want to use a shell script for this, and the templates are very small so I want to embed them in the shell script. The problem is that echo seems to ignore the line breaks in my string. Either that, or the string doesn't contain line breaks to begin with. Here is an example: