Skip to content

Instantly share code, notes, and snippets.

@dex4er
Created February 4, 2013 20:06
Show Gist options
  • Select an option

  • Save dex4er/4709265 to your computer and use it in GitHub Desktop.

Select an option

Save dex4er/4709265 to your computer and use it in GitHub Desktop.
Bash snippets
die () {
echo "$@" 1>&2
exit 1
}
template () {
file=$1
eval "cat << EOF
`cat template/$file`
EOF
" > output/$file
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment