Hello World in Bash Scripting
- Open your linux terminal
- Check if you're using bash:
$ echo "${SHELL}"
- create your script and add run permission only for you:
$ touch script.bash; chmod 700 script.bash
- write this with your favourite text editor:
#!/bin/bash
echo "Hello World!"
- Done.
$ ./script.bash
Hello World!