Skip to content

Instantly share code, notes, and snippets.

@thewoolleyman
Created August 15, 2010 01:05
Show Gist options
  • Save thewoolleyman/524916 to your computer and use it in GitHub Desktop.
Save thewoolleyman/524916 to your computer and use it in GitHub Desktop.
heredoc_example
#!/usr/bin/env bash
# heredoc example
# any reason this:
x=$( cat <<LINES
one 1
two 2
LINES
)
echo "$x"
# ...is better than this?
y='one 1
two 2'
echo "$y"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment