echo with new lines

For future reference:

echo “This does not give \n a new line”

does not work. I had used printf sometimes but the -e switch also works for echo:

echo -e “This gives \n a new line”

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>