topical media & game development
basic-unix-13.txt / txt
Chapter 13
#!/bin/bash
echo “Guess the secret color”
read COLOR
if [ COLOR=”purple” ]
then
echo “You are correct.”
elif [ COLOR != “purple” ]
do
echo “Incorrect. Guess again. \n”
read
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.