Skip to content

Instantly share code, notes, and snippets.

@rc5hack
Created January 14, 2014 13:13
Show Gist options
  • Save rc5hack/8418107 to your computer and use it in GitHub Desktop.
Save rc5hack/8418107 to your computer and use it in GitHub Desktop.
HEREDOC for bash
#!/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