Skip to content

Instantly share code, notes, and snippets.

@geoffrepoli
Created September 13, 2017 20:20
Show Gist options
  • Save geoffrepoli/68344a63a89af1aada36604af39ca49b to your computer and use it in GitHub Desktop.
Save geoffrepoli/68344a63a89af1aada36604af39ca49b to your computer and use it in GitHub Desktop.
str=$(echo -e "$(cat <<EOF
this
\tis
\t\tmy
\t\t\theredoc
EOF
)")
echo "$str" > file.ext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment