bash echo how to add newline? code example Example 1: echo new line echo -e "hello\nworld" Example 2: newline in echo unix echo $'hello\nworld'