In Bash, tried this:
echo -e "Hello, World!"
But it doesn't print a newline, only . How can I make it print the newline?
I'm using Ubuntu?11.04 (Natty Narwhal).
You could use printf instead:
printf
printf "hello world "
printf has more consistent behavior than echo. The behavior of echo varies greatly between different versions.
echo
2.1m questions
2.1m answers
60 comments
57.0k users