echo bash new line code example Example 1: newline in echo unix echo $'hello\nworld' Example 2: echo new line in a file bash echo -e "Line 1\nLine 2"