Simple Linux Bash Shell Script

The following is an example script you can run on your Linux machine. The script prompts the user for an input, depending on the entered information, the script uses and if/else statement to determine which message to show.


echo "Enter the domain name for this website?"
read website

echo "${website} Is cool!"

if [ $website == '' ]
echo "You entered the correct answer"
echo "Incorrect, the correct answer is - Try again"

After you have created this script, be sure to setup the correct permissions with the following commands:

$ chmod +x SCRIPTNAME

$ chmod 755 SCRIPTNAME

I hope that helps