Created
May 16, 2014 19:31
-
-
Save bcicen/e503a06e1f756a70e9e1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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