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