From 11e1ef85c5342aab5d92794146cc765b47857224 Mon Sep 17 00:00:00 2001 From: Blaise Sebagabo Date: Mon, 5 Nov 2018 13:16:55 -0700 Subject: [PATCH] Added a script example (#21124) This script will display the user's name --- guide/english/bash/index.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/guide/english/bash/index.md b/guide/english/bash/index.md index 8802355c7b9..633444162f7 100644 --- a/guide/english/bash/index.md +++ b/guide/english/bash/index.md @@ -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))