In the terminal of Ubuntu 18.04 LTS, when I write this command:
echo -e "Hello\\\n"
It gives this as the output:
Hello\n
But it should print, as the man page says:
Hello\
That is, first print Hello
, then \
, then a newline character (and then another newline). Where is the problem?
See these few echo -e
commands and their output:
man420@man420-X542UQ:~$ echo -e "HEllo\a\a\a\a\a\a\\\n"
HEllo\n
man420@man420-X542UQ:~$ echo -e "HEllo\\\n"
HEllo\n
man420@man420-X542UQ:~$ echo -e "HEllo\a\\\n"
HEllo\n