Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
GROUP C
SHELL SCRIPT EXERCISE
BRIEF:
This laboratory exercise segment will be part of the grade for the unit FEE
281.
The exercise consists of five questions involving writing solutions using shell
scripting and command line concepts.
Answer all the questions.
Deadline: 12th February 2015
INSTRUCTIONS:
The laboratory work must have the following format and follow the following
rules:
1. A Title Page indicating Student name, Student Registration Number,
Group Designation (A, B, D or C) and Submission Date
2. A group has a maximum number of 2 individuals. Group members
details should be on the Title page only.
3. A Body that is a minimum of 3 pages in length, excluding the Title
Page.
4. All parts of the report/exercise must be handwritten.
5. Copied work will not be tolerated. Be as unique as possible.
6. Marks may be awarded for clarity of presentation and expression.
7. Submit your work only using A4 single ruled paper (you may
choose to use either standard ruled 32 lines or narrow ruled 70
lines)
Marks will be deducted if the aforementioned rules are not adhered to.
QUESTION 1 (4marks)
QUESTION 2 (4marks)
QUESTION 3 (4marks)
Create a shell script called scriptQ3.sh that does the following when
executed:
o Asks the user to input two integral numbers
o It calculates the sum, difference, multiplication and quotient of the
above user generated numbers
o It has the four results displayed on the terminal screen
Write out scriptQ3.sh
QUESTION 4 (2marks)
QUESTION 5 (6marks)
Create a shell script called scriptQ5.sh that does the following when
executed:
o
o
o
Write