Print without newline in Bash script

echo -n "Some string..."
echo -e "Some string...\c"
printf "a line without trailing linefeed"
printf "a line with trailing linefeed\n"

References
https://stackoverflow.com/questions/11193466/echo-without-newline-in-a-shell-script

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.