Skip to content

Instantly share code, notes, and snippets.

@Demontager
Created April 30, 2014 17:35
Show Gist options
  • Save Demontager/f7cb7d2b9854326e21fb to your computer and use it in GitHub Desktop.
Save Demontager/f7cb7d2b9854326e21fb to your computer and use it in GitHub Desktop.
cat <<"EOT"
don't $expand this
$expand this
EOT
@koalaman
Copy link

{
cat <<"EOT"
don't $expand this
EOT
cat <<EOT
$expand this
EOT
}  | whatever

@Demontager
Copy link
Author

{
cat <<EOT
$expand this
EOT
cat <<"EOT"
don't $expand this
EOT
} | ssh root@$server 'cat - > /tmp/cardcheck.sh'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment