[echo] Print a string without a trailing newline

Created on November 30, 2026

Use echo -n to suppress the newline that echo normally appends. The second echo therefore starts on the same line as Hello.

echo -n "Hello"; echo "World"

Output

HelloWorld
Shell command