echo "\n" probably works, just not the way you expect.
This command will add a new line character. Of its sounds, you use a browser to view the results. Please note: if you wrote an HTML file with the contents of the body, which looked like this:
<p>This is a test </p>
In the browser, the rendering will not include new lines and instead simply displays “This is a test”
If you want to see new lines, you can view the source and you will see that the source code contains new lines.
The rule of thumb is that if you need new lines in the browser, you need to use HTML (for example, <br /> ), and if you want it in text format, you can use \n
ernie
source share