line break on bash script
Hi everyone,
I want to make line break indise a quoted text with echo. echo "my name is zamo" I want the output to be my name is zamo. Thanks in advance. |
Hi,
Did you try something like this: echo "my name is zamo." or: echo -e "my\nname\nis\nzamo." Hope this helps. |
Thank you , druuna.
|
There is a pitfall (at least for beginners like me) related to linebreaks when working with variables.
Consider a text variable containing a line break in it: Code:
var="first line Code:
shell> var="first line |
Quote:
|
Head's up folks!!!---Thread over 2 years old.
|
All times are GMT -5. The time now is 05:09 AM. |