How to put line breaks in shell output?


Is it possible to add line breaks to the output. For example I run some Integration Tests and then after they have completed I want a visual separation from the following logs that I add of the docker container.

I’ve tried

echo \\n------------- Integration Tests Complete -------------\\n\\n


echo “\n\n”

But the output is literal:

\n------------- Integration Tests Complete -------------\n\n

The man page for echo suggests this switch:

echo -e "Hello\n"
1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.