Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

HEREDOC script into var

define VAR <<'EOF'
abc'asdf"
$(dont-execute-this)
foo"bar"''
EOF

echo "$VAR"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #HEREDOC #script #var
ADD COMMENT
Topic
Name
3+8 =