Learn Bash Scripting by Building Five Programs - echo -e \n~~ Questionnaire ~~\n doesn't work

What should i do? I literally copy and pasted the hint it gave me and still i keep getting the same error " Your script should “echo” the suggested text correctly"

Captura de tela de 2024-07-07 15-15-50

You can try to put a double quote on the text you want to display.

1 Like

To make forced newlines work with echo and \n you need to use the -e option AND enclose the text parameter in double quotes.
Type help echo in a bash terminal.

1 Like

Thanks. It worked now!