The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 02-05-2008
joeyg's Avatar
joeyg joeyg is online now
premier etoile de match
 

Join Date: Dec 2007
Location: Home of world champion Boston Celtics
Posts: 631
Cool perhaps the issue was with variable names

try the following:

#!/bin/sh
astring="z"
while [ $astring != "quit" ]
do
read astring
if [ $astring = "z" ]
then
bstring="hello my name is Gsmith and I have 5 dollars"
echo $bstring
else
echo "Never again"
fi
done
Reply With Quote