Hello,
On a Sun Solaris systen from a Bourne shell script I have several static lines (35) of text that I need to store in a variable.
The hard way would be like:
Or perhaps outputting it into a file then into a variable.
I think what I am look for is to be able to take the text as an entire block but dont quite know the syntax.
Something like this (would this work - if coded right):
Many thanks,
JT
On a Sun Solaris systen from a Bourne shell script I have several static lines (35) of text that I need to store in a variable.
The hard way would be like:
Code:
VAR="Line 1"
VAR="$VAR Line2"
VAR="$VAR Line3"
...
Or perhaps outputting it into a file then into a variable.
I think what I am look for is to be able to take the text as an entire block but dont quite know the syntax.
Something like this (would this work - if coded right):
Code:
VAR <<
Line 1
Line 2
Line 3 ...
VAR
echo "$VAR"
Many thanks,
JT