I wrote a bash script under CentOS and it was executed well. On another computer it was wrong. I forgot the shebang at the beginning, but why was it good on my computer? I assume it's a very beginner question, but I gave it a try. Thanks.
Updated: Another question popped up. What's the difference between executing with ./filename.sh and sh filename.sh?