Added a script example (#21124)

This script will display the user's name
pull/21122/head^2
Blaise Sebagabo 2018-11-05 13:16:55 -07:00 committed by Paul Gamble
parent 9e6621edf5
commit 11e1ef85c5
1 changed files with 8 additions and 0 deletions

View File

@ -60,6 +60,14 @@ or
zach@marigold:~$ chmod 744 myBashScript.sh
````
And then execute the script.
## Script Example
If you execute this script it is going to print out your name.
```
#!/usr/bin/env bash
NAME="John"
echo "Hello $NAME!"
```
### More Information:
* [Wikipedia - Bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))