Our first shell script will cover the basics of how to tell the computer to run the shell script.
My first shell script
She bangs, she bangs!
We're not talking about that popular Ricky Martin song. We're talking about what every bash script needs in order to run. If you've worked with other programming languages, you may have noticed the first line always starts with a #!. This tells the system which interpreter to use. For example, if you've worked with Python before, you've probably seen #!/usr/bin/env python2.7 in a script. With bash, it's no different. Let's go ahead and create a new file named hello_world.sh and enter the following:
#!/bin/bash
# A function to greet everyone
greet_everyone...