How to put line breaks in shell output?


#1

Hi

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

and

echo “\n\n”

But the output is literal:

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


#2

The man page for echo suggests this switch:

echo -e "Hello\n"

closed #3

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