CIS129 - Project 2 1) Requirements of the script: a) You can use any shell, but you must identify the shell on the first line. Example: #!\bin\bash b) Fully document the script. Explain what you are...

1 answer below »

CIS129 - Project 2

1) Requirements of the script:
a) You can use any shell, but you must identify the shell on the first line. Example: #!\bin\bash
) Fully document the script. Explain what you are doing. Points will be deducted for undocumented
scripts.
c) You will be provided 3 data files that you MUST copy to use for your project as noted below.
d) You MUST use a looping structure to process Data File 1 to find the Olympic Category Code to access
Data File 2.
e) A second looping structure will be nested inside the first to find all the events that co
espond to
that Olympic Category Code.
f) You will then use grep to access Data File 3 based upon the information found inside Data File 2.
g) Your script MUST be called “project2.sh”.
h) Your output file will be as shown below and all output redirection will happen inside the script.
i) Your output files MUST be called “project2.out”

The script should use "echo" or “printf” statements to display your name, title, and any information you need to
in the script.

Example output header required in every output file:

echo ”****************************************” > $outfile
echo “* CIS129 Project XXXXXXXXXXYour Name *”
$outfile
echo “* `date` *”
$outfile
echo “****************************************”
$outfile
echo
$outfile
echo
$outfile
The example output header information shown below is just an example. Feel free to make it your
own look and appearance.



2) The data files can be copied from: /opt/cis129/fulton/project2

NOTE: Copy the files in the above directory to your home directory to use for the
project.

WARNING! You cannot use Filezilla to copy the files, that is an FTP program! You
must use the cp command you learned in Section 4!

Example: cp source location destination location

Remember, when you login to the cislinux server, you are in YOUR HOME DIRECTORY! So to copy the
files, you just have to specify where you want to copy (cp) the files from (source)
(/opt/cis129/fulton/project2/*) and put them where you are (destination) (in your Home directory,
which is your cu
ent directory specified by a . (period)).

Datafile 1: (Olympic Category) Datafile 2: (Events) Datafile 3: (Gold Medal)

Paddling XXXXXXXXXXKayak Kayak Germany
Swimming XXXXXXXXXXCanoe Beam Russia
Fencing XXXXXXXXXXFreestyle Freestyle United States
Volleyball XXXXXXXXXXBreaststroke Foil France
Gymnastics XXXXXXXXXXBackstroke Breaststroke Australia
XXXXXXXXXXButterfly Sa
e Qatar
XXXXXXXXXXFoil Beach Brazil
XXXXXXXXXXSa
e Vault China
XXXXXXXXXXBeach Canoe Uzbekistan
XXXXXXXXXXIndoor Indoor Canada
XXXXXXXXXXVault Butterfly Hungary
XXXXXXXXXXFloor Bar Japan
XXXXXXXXXXBar Backstroke Netherlands
XXXXXXXXXXBeam Floor Romania

3) Output file:

Student Header information as described above…

CIS 129 – Project 2
Student Name Date/Time

Olympic Sport Event Country of Gold Medal Winner
============ ===== =========================

Paddling Kayak Germany
Canoe Uzbekistan

----------------------------------------------------------------------------------------------
Swimming Freestyle United States
Breaststroke France
Backstroke Australia
Butterfly Hungary

---------------------------------------------------------------------------------------------
Fencing Foil France
Sa
e Qatar

---------------------------------------------------------------------------------------------
Volleyball Beach Brazil
Indoor Canada

---------------------------------------------------------------------------------------------
Gymnastics Vault China
Floor Romania
Bar Japan
Beam Russia

---------------------------------------------------------------------------------------------




4) When you have completed the project, you will upload 2 files into Moodle for
grading.

1) The script: project2.sh
2) The output file: project2.out
Answered 1 days AfterApr 16, 2022

Answer To : CIS129 - Project 2 1) Requirements of the script: a) You can use any shell, but you must identify...

Karthi answered on Apr 17 2022
21 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here