chaîne de format bash
echo [option(s)][string(s)]
-n Do not print the trailing newline
-E Disable interpretation of back-slash escaped characters
-e Enable interpretation of backslash escapes
\a Alert
\b Backspace
\c Suppress trailing newline
\e Escape
\f Form feed
\\ backslash
\n New line
\r Carriage return
\t Horizontal tab
\v Vertical tab
echo -e "Hello \nmy \nname \nis \nJohn \nDoe"
output:
Hello
my
name
is
John
Doe
Nimorum