Posted by tollyrocks on Tuesday, February 16, 2010
Lets begin this bash scripting tutorial with a simple "Hello World" script. Let's start with Learning the bash Shell: Unix Shell Programming
1. Hello World Bash Shell Script
Open vi hello_world.sh
# declare STRING variable
#print variable on a screen
escape Colon :wq w:- save, q:- quit.
Navigate to a directory where your hello_world.sh is located and make the file executable:
$ chmod +x hello_world.sh
Execute the Script.