Created
January 26, 2016 16:39
-
-
Save tygern/76034ea0d271bbe745bb to your computer and use it in GitHub Desktop.
Set multiline bash variable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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