[Shell command] Print line breaks with echo -e in Bash

Created on November 30, 2026

With Bash's default settings, echo prints the characters \n as written.

echo "Hello\nWorld"
Hello\nWorld

Add -e to have echo interpret \n as a newline.

echo -e "Hello\nWorld"
Hello
World
Shell command