Answers for "bash multi line variable"

2

bash string variable multiline string

VAR1=$(cat <<EOF
<?xml version="1.0" encoding='UTF-8'?>
<painting>
  <img src="madonna.jpg" alt='Foligno Madonna, by Raphael'/>
  <caption>This is Raphael's "Foligno" Madonna, painted in
  <date>1511</date>-<date>1512</date>.</caption>
</painting>
EOF
)
Posted by: Guest on November-03-2021
0

linux set multiline variable

echo | tee /tmp/pipetest << EndOfMessage
This is line 1.
This is line 2.
Line 3.
EndOfMessage
Posted by: Guest on October-10-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language