Linux how to ‘echo’ without a new line

Simply put: use printf

printf "Hello World"

Alternatively, if you insist on using echo

echo -e "No New line...c"

test with

echo -e "No New line...c" ; echo "test 4 urself"

 

Leave a Reply

Close Menu
%d bloggers like this: