Question: I need help with a template of a shell script that uses a file called sum.c which sums the values from files in directory called

I need help with a template of a shell script that uses a file called sum.c which sums the values from files in directory called Data. The files are generated by another file called datagen.c. The shell script must output the sums into a new file called unixscript-results.
Instructions: This is an exercise on using shell scripts to process data. In laulima in this assignment, there should be a UnixScript.tar.gz file. Download the file and transfer it into your wiliki account. Unzip and untar it and notice that it creates a directory UnixScript, which has a files and a subdirectory. Read the README file to learn the contents. Notice a subdirectory Data has ten data files: "datafile-0", "datafile-1", etc. Each of these data files can be processed by a program called "sum.c", which has the executable "sum". The makefile will create the executable. The "sum" program will sum the data values in a file and output the results. Your task is to create a shell script, named "scriptlab1", that will run in the directory UnixScript on wiliki. The script will use "sum" to process each data file in "Data". The outputs are put into a file (you create) called "unixscript-results", and its contents should look like this Sum from data file Data/datafile-0 is 906 Sum from data file Data/datafile-1 is 1119 Sum from data file Data/datafile-9 is 1176
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
