Explore BrainMass

Run shell and UNIX

This content was STOLEN from BrainMass.com - View the original, and get the already-completed solution here!

Copy the following shell that completes the following:

echo Select a country from the following list:
echo America, Italy, France, Germany
read country

case $country in
[Aa]merica ) echo Ford; echo Perhpas;;
[Ii]taly ) echo Ferarri;echo no;;
[Ff]rance ) echo Peugeot ;echo no way;;
[Gg]ermany ) echo Porsche ;echo yes;;


Run the shell from above.

Answer the following questions:

1. What is the purpose of the echo command?
2. In the case statement why are the first letters both caps and lower case?
3. what does esac mean?

© BrainMass Inc. brainmass.com December 20, 2018, 12:47 am ad1c9bdddf

Solution Preview

1. The echo command reflects whatever whoatever is written after the keyword 'echo' - i.e., it echoes ...

Solution Summary

This solution provides answers to questions regarding shell commands on UNIX.