By default, echo appends a newline after the output. But you can use echo -n option to suppress newline appending.
1 2 3 4 5 |
echo "hello world" ## returns hello world and a new line echo -n "hello world" ## returns hello world |