Info: "-e" means enable escape sequences
Examples of backslash escapes:
New line;
$ echo -e "Hello World\n"
-> Hello World
Form feed;
$ echo -e "Hello World\fWhat a lovely day\fI like this\f"
-> Hello World
What a lovely day
I like this
Carriage return;
$ echo -e "Hello World\rWorld"
-> World World
Horizontal tab;
$ echo -e "Hello World\tWhat a lovely day"
-> Hello World What a lovely day
Vertical tab;
$ echo -e "Hello World\vWhat a lovely day"
-> Hello World
What a lovely day
Null;
$ echo -e "Hello World\0 What a lovely day"
-> Hello World What a lovely day
Clear after all;
$ echo -e "Hello World\c What a lovely day"
-> Hello World
Escape character;
$ echo -e "Go to \\home directory"
-> Go to \home directory
$ echo -e "Go to \"home\" directory"
Unicode usage;
$ echo -e "This is turkish lira symbol-> \u20ba"
-> This is turkish lira symbol-> ₺
$ echo -e "Go to \"home\" directory"
-> Go to "home" directory
Unicode usage;
$ echo -e "This is turkish lira symbol-> \u20ba"
-> This is turkish lira symbol-> ₺