Beruflich Dokumente
Kultur Dokumente
You are to implement a Phonebook using Shell scripting and UNIX command line utilities and
commands. Some documentation will also be required.
Submission
Submit a single zip file called Phonebook.zip containing all of your files (Source, Scripts, etc).
Organize them properly into directories and ensure that they run when unzipped without having
to reorganize.
The assignment is to be submitted using Safe Assignment on LearnJCU. It is expected that your
files have sufficient comments so that no other documentation is needed to understand the code.
Marking Scheme
Criteria Explanation Marks available
Specifications 2 marks for each point implemented 10
Functionality Does the script run correctly on dunk (even if 10
the script looks horrible)?
Quality Is it easy to read, understand, maintain? Does 10
it use constructs well, even if it may not work
all that well?
Will look at:
Comments
Variable Names
Structure of code
Tests Has the script been properly tested? And is the 10
proof of this supplied in a file? Has the
command line functionality been properly
tested and is proof of this supplied in a file?
Modularity Appropriate use of functions 10
Total 50
Appendix 1: script: A very useful UNIX Command
To save your interaction with your program to a file use the command script
This will change your prompt to remind that it is in operation, and record actions to a file
named typescript
When you are done interacting with your program type exit at the prompt, then look at
the file typescript to see that your interactions were recorded properly.
Copy the file typescript to the file you want to keep, e.g.
cp typescript phonebook_running_transcript.txt
Appendix 2: Constructs
if [ condition ]; then
else
fi
case var in
esac
functions
for var in
do
done