Created
January 14, 2014 13:13
-
-
Save rc5hack/8418107 to your computer and use it in GitHub Desktop.
HEREDOC for bash
This file contains 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
#!/usr/bin/env bash | |
NAME="John Doe" | |
RESPONDENT="author of this fine script" | |
cat <<EndOfMessage | |
Hi there, $NAME. | |
Greetings to you, '$NAME', from "$RESPONDENT". | |
EndOfMessage |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment