Skip to content

Instantly share code, notes, and snippets.

@tygern
Created January 26, 2016 16:39
Show Gist options
  • Select an option

  • Save tygern/76034ea0d271bbe745bb to your computer and use it in GitHub Desktop.

Select an option

Save tygern/76034ea0d271bbe745bb to your computer and use it in GitHub Desktop.
Set multiline bash variable
read -r -d '' TEMP_VARIABLE <<'EOF'
this
is a
multiline variable
EOF
export MULTILINE_VARIABLE="$TEMP_VARIABLE"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment