Search Results

Search: Posts Made By: starks
3,038
Posted By starks
No, it does not work for me. Tried it again just...
No, it does not work for me. Tried it again just right now.
I get this:

echo $var
multi\n line\n variable
3,038
Posted By starks
Thank you very much, appreciate it a lot. Yes,...
Thank you very much, appreciate it a lot. Yes, this did the trick, now it works. :) In fact, I don't even have to put "\n" when it's called like this.
3,038
Posted By starks
I'm using the Bash shell.
I'm using the Bash shell.
3,038
Posted By starks
Thank you. I do this, than I do an "echo $var1"...
Thank you. I do this, than I do an "echo $var1" and this is what I get:

more \n than \n one \n line

I think the single quotes tells it to ignore the returns. When I use double quotes, I still...
3,038
Posted By starks
Quick Variable Question
Hi, this is probably very easy but, how do I define a variable for more than one line.

For example:

var1='more
than
one
line'

when I call it, I want it to be exactly like this, don't...
Showing results 1 to 5 of 5

 
All times are GMT -4. The time now is 01:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy