Added a script example (#21124)
This script will display the user's name
This commit is contained in:
committed by
Paul Gamble
parent
9e6621edf5
commit
11e1ef85c5
@ -60,6 +60,14 @@ or
|
|||||||
zach@marigold:~$ chmod 744 myBashScript.sh
|
zach@marigold:~$ chmod 744 myBashScript.sh
|
||||||
````
|
````
|
||||||
And then execute the script.
|
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:
|
### More Information:
|
||||||
|
|
||||||
* [Wikipedia - Bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))
|
* [Wikipedia - Bash](https://en.wikipedia.org/wiki/Bash_(Unix_shell))
|
||||||
|
Reference in New Issue
Block a user