Purchase Solution

Two shell scripts

Not what you're looking for?

Ask Custom Question

Assignment

Copy the following shell that completes the following:

#!/bin/bash

echo Select a country from the following list:

echo America, Italy, France, Germany

read country

case $country in

[Aa]merica ) echo Ford; echo Perhaps;;

[Ii]taly ) echo Ferarri;echo no;;

[Ff]rance ) echo Peugeot ;echo no way;;

[Gg]ermany ) echo Porsche ;echo yes;;

esac

· Run the shell from above. 5 Points

· Answer the following questions:

What is the purpose of the echo command? 5 points
In the case statement, why are the first letters both caps and lower case? 5 points
What does esac mean? 5 Points
· Submit the answers to these questions for grading.

· Create your own shell that completes the following problem:

Ask the user their name. 26 points
Compare it to your name. 26 points
Give a reply that their response is either your name too or it is a nice name too. 28 points
Submit a listing of this shell for grading. All work should be in a Word file.
Please make sure you have screen shoots of the execution of the given script and the work of the create script.
Also, make sure your script can do both upper and lower case letters

Purchase this Solution

Solution Summary

This solution provides two shell scripts (bash) with an explanation of how they work.

Purchase this Solution


Free BrainMass Quizzes
Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Excel Introductory Quiz

This quiz tests your knowledge of basics of MS-Excel.

Java loops

This quiz checks your knowledge of for and while loops in Java. For and while loops are essential building blocks for all Java programs. Having a solid understanding of these constructs is critical for success in programming Java.

Javscript Basics

Quiz on basics of javascript programming language.

Basic Computer Terms

We use many basic terms like bit, pixel in our usual conversations about computers. Are we aware of what these mean? This little quiz is an attempt towards discovering that.