I was reading up how to create a shell script on http://linuxcommand.org and noticed something, there's a part for an example shell script, as follows.
Code:
#!/bin/bash
# My first script

echo "Hello World!"
Let's say I input that in gedit, will the '#!/bin/bash' part tell gedit to save it there? The site really didn't go in detail.