Purchase Solution

Shell Scripting in Knoppix

Not what you're looking for?

Ask Custom Question

I am trying to create a script in Knoppix 4.02 (KDE or Kwrite or Kate) based on the following requirements below. I want to create a prompt that will:

· Request user specific name

· I want Linux to compare it to an established name(Esther)

· I want the Linux to find the user specified name or Esther asking is this your name or another.

I am also using Knoppix 4.02 to , create the file below but I can not turn on vim text editor on . When I open up kWrite or Kate I get nothing and Konsole leave me lost when insert the following text below . I attempt to create and run file after e text is entered into vi editor . Once complete I have tried to execute and run the script but no avail. Please help. Program is Knoppix 4.02 version of Linuz

#!/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 Absolutely;;

esac

I am trying to create a script in Knoppix 4.02 (KDE or Kwrite or Kate) based on the following requirements below. I want to create a prompt that will:

· Request user specific name

· I want Linux to compare it to an established name(Esther)

· I want the Linux to find the user specified name or Esther asking is this your name or another.

Purchase this Solution

Solution Summary

Shell Scripting in Knoppix is featured.

Solution Preview

The program you have written works quite well. What you need to do is the following.
Suppose you have written it to a file "foo.sh". What you need to do is to save it and make it executable. By executable I mean do chmod +x foo.sh

afterwards you can type ./foo.sh Or sh foo.sh to make the program work (from the ...

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.

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.

C++ Operators

This quiz tests a student's knowledge about C++ operators.

Excel Introductory Quiz

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

Word 2010: Table of Contents

Ever wondered where a Table of Contents in a Word document comes from? Maybe you need a refresher on the topic? This quiz will remind you of the keywords and options used when working with a T.O.C. in Word 2010.