I am just strating out with creating shell scripts and was wondering if anyone could offer up any advice.
I am trying to learn how to get a script to ask the user to enter a name and based on the named entered the script displays another. I think I am on the correct track but I don't know how to add more then on variable.
name=America
echo "Enter the Name of a Country"
read $name
case $name in
America)
echo "Ford";;
Japan)
echo "Lexus";;
esac
When I run the script it prompts the user to enter the name of a country. If I enter America, Ford shows up, but if I enter Japan, Ford again shows up. Can anyone point me in the correct direction.