Question: Linux Task 1 : bash Scripts ( 2 0 marks ) Submitting your work Your output should be composed of screenshots of the scripts that
Linux Task : bash Scripts marks
Submitting your work
Your output should be composed of screenshots of the scripts that you have developed and also
include screenshots of the testing of the scripts.
Marking scheme for Q and out of
means No attempt"
means "I can tell what question you are trying to answer."
means "I can see what you are trying to do
means "A reasonable approach that shows you're on the right lines."
means "The script works, but is only tested with the example from the question."
means "The script works, and it has been tested with test cases checking for errors."
using if statements you can also use for or while
Write a script called that will take two arguments and make sure that two arguments are
input. You need to check if they are actually files report an error if they are a directory Then you
need to output the first two lines of each file and sum the total number of characters in each file.
processing a variable number of arguments with while and using if
Write a script called sh that will read the arguments as your six module marks and find the
average of the best five marks the best credits
Average of best five modules: Not bold: what your script might output.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
