Wednesday, April 20, 2011

new line in echo

By default, echo will not interpret backslash escapes. If you want it to do that, you need to use the -e flag:

echo -e "--\nThis message is composed of 100% recycled ascii"

No comments:

Post a Comment