View previous topic :: View next topic |
Author |
Message |
simvin76 Tux's lil' helper
Joined: 05 Oct 2005 Posts: 96
|
Posted: Sat Nov 10, 2007 12:41 am Post subject: echo "hello \n world" Prints 1 line instead of 2 [ |
|
|
Hello
How do I get \n to generate a new line in a script?
Example:
If I type Code: | echo "Hello \n world!" | I get the result
How do I do to get the result
Best regards
Simon
Last edited by simvin76 on Sat Nov 10, 2007 12:58 am; edited 1 time in total |
|
Back to top |
|
|
embobo Guru
Joined: 19 May 2003 Posts: 311
|
Posted: Sat Nov 10, 2007 12:43 am Post subject: |
|
|
From the man page:
Quote: |
-e enable interpretation of the backslash-escaped characters
listed below
|
|
|
Back to top |
|
|
simvin76 Tux's lil' helper
Joined: 05 Oct 2005 Posts: 96
|
Posted: Sat Nov 10, 2007 12:50 am Post subject: |
|
|
embobo wrote: | From the man page:
Quote: |
-e enable interpretation of the backslash-escaped characters
listed below
|
| Which man page?
Best regards
/Simon |
|
Back to top |
|
|
embobo Guru
Joined: 19 May 2003 Posts: 311
|
Posted: Sat Nov 10, 2007 12:54 am Post subject: |
|
|
The man page for echo. |
|
Back to top |
|
|
simvin76 Tux's lil' helper
Joined: 05 Oct 2005 Posts: 96
|
Posted: Sat Nov 10, 2007 12:58 am Post subject: |
|
|
Should have thought about checking there.
Thank you.
/Simon |
|
Back to top |
|
|
|