EN
Bash - insert new line to echo command
3 points
In this article, we would like to show you how to insert new line character to echo command in Bash.
Quick solution:
xxxxxxxxxx
1
echo -e "1\n2\n3"
Explanation:
To enable inserting new line character in echo command we use -e
option.