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