Skip to content

Instantly share code, notes, and snippets.

@bcicen
Created May 16, 2014 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bcicen/e503a06e1f756a70e9e1 to your computer and use it in GitHub Desktop.
Save bcicen/e503a06e1f756a70e9e1 to your computer and use it in GitHub Desktop.
#!/bin/bash
cat <<EOF
hello
there
EOF
function hered1(){
cat <<EOF
hello
there
EOF
}
#function hered2(){
#won't work
#for i in 1; do
# cat << EOF
# hello
# there
# EOF
#done
#}
function hered3(){
for i in 1; do
cat <<- EOF
hello
there
EOF
done
}
hered1
hered3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment