Skip to content

Instantly share code, notes, and snippets.

@davepacheco
Created April 22, 2014 23:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davepacheco/11197820 to your computer and use it in GitHub Desktop.
Save davepacheco/11197820 to your computer and use it in GitHub Desktop.
dap@sharptooth $ cat foo.sh
#!/bin/bash
cat <<EOF > bar
hello \$(date)
EOF
dap@sharptooth $ ./foo.sh
dap@sharptooth $ cat bar
hello $(date)
dap@sharptooth $ cat foo.sh
#!/bin/bash
cat <<'EOF' > bar
hello `date`
EOF
dap@sharptooth $ ./foo.sh
dap@sharptooth $ cat bar
hello `date`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment