LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   echo on a new line does not work (https://www.linuxquestions.org/questions/linux-newbie-8/echo-on-a-new-line-does-not-work-646337/)

B-Boy 06-02-2008 02:51 AM

echo on a new line does not work
 
Hi

i am trying to enter a text on a new line with echo but it does not seem to work

Code:

echo -e hello \n what is you name

indeliblestamp 06-02-2008 03:47 AM

Use double quotes.
Code:

bash-2.05b ~$ echo -e "hello \n what is you name"
hello
 what is you name


B-Boy 06-02-2008 09:54 AM

thanks for your help it worked


All times are GMT -5. The time now is 06:03 AM.